text: import test from 'ava';
  import { actionTest } from 'redux-ava';
  
  import {
    ADD_POST,
    DELETE_POST,
    ADD_POSTS,
    addPost,
    deletePost,
    addPosts,
  } from '../PostActions';
  
  const post = { name: 'Prashant', title: 'Hello Mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'", slug: 'hello-mern', _id: 1 };
  
  test('should return the correct type for addPost', actionTest(
    addPost,
    post,
    { type: ADD_POST, post },
  ));
  
  test('should return the correct type for deletePost', actionTest(
    deletePost,
    post.cuid,
    { type: DELETE_POST, cuid: post.cuid },
  ));
  
  test('should return the correct type for addPosts', actionTest(
    addPosts,
    [post],
    { type: ADD_POSTS, posts: [post] },
  ));
  