Skip to content

Commit

Permalink
Merge pull request #5 from migueliriano/feature/CARD-5881655
Browse files Browse the repository at this point in the history
add index action test
  • Loading branch information
migueliriano authored Nov 29, 2017
2 parents 6f122cb + 12a3a65 commit 27981a7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/actions/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import actions from '../index';

import * as animeList from '../animeList';
import * as animeListCreators from '../animeListCreators';
import * as singleAnime from '../singleAnime';
import * as singleAnimeCreators from '../singleAnimeCreators';

it('Get actions index', () => {
const expected = {
...animeList,
...singleAnime,
...singleAnimeCreators,
...animeListCreators,
};
expect(actions).toMatchObject(expected);
});
5 changes: 5 additions & 0 deletions src/actions/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import * as animeList from './animeList';
import * as animeListCreators from './animeListCreators';
import * as singleAnime from './singleAnime';
import * as singleAnimeCreators from './singleAnimeCreators';

/** @export @type {object} */
export default {
...animeList,
...singleAnime,
...singleAnimeCreators,
...animeListCreators,
};

0 comments on commit 27981a7

Please sign in to comment.