Last active
August 10, 2016 11:42
-
-
Save mthuret/b09749dcb42551c48cf4732c180a0c0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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