Skip to content

Instantly share code, notes, and snippets.

@mthuret
Last active August 10, 2016 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mthuret/b09749dcb42551c48cf4732c180a0c0b to your computer and use it in GitHub Desktop.
Save mthuret/b09749dcb42551c48cf4732c180a0c0b to your computer and use it in GitHub Desktop.
storiesOf('MainSection', module)
.add('some completed', () => {
const story = getMainSection([
{ id: 'one', text: 'Item One', completed: false },
{ id: 'two', text: 'Item Two', completed: true },
]);
specs(() => describe('some completed', function () {
it('Should indicate that only one item is left', function () {
let output = mount(story);
expect(output.text()).toContain('1 item left');
});
}));
return story
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment