Created
April 6, 2016 01:22
-
-
Save Nicktho/85c5d6d36c0d17cef61c80d6fa09ee7c 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
describe('#subscribe', () => { | |
it('should add the passed function to the listeners', () => { | |
const store = createStore(x => x, {}); | |
let called = false; | |
store.subscribe(() => called = true); | |
store.dispatch({ type: '' }); | |
expect(called).to.be.true; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment