Skip to content

Instantly share code, notes, and snippets.

@jdmunro
Created January 30, 2017 20:29
Show Gist options
  • Save jdmunro/a52dae98bd1b0f95695b6a37e7567765 to your computer and use it in GitHub Desktop.
Save jdmunro/a52dae98bd1b0f95695b6a37e7567765 to your computer and use it in GitHub Desktop.
describe('Meal Plan List', () => {
it('renders correctly', () => {
const week = immutable.Map({
week: 4,
year: 2017,
});
store.dispatch(importMeals(SAMPLE_MEALS));
store.dispatch(setVisibleWeek(week));
const tree = renderer.create(
<MealList
store={store}
/>
).toJSON();
expect(tree).toMatchSnapshot();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment