Created
July 22, 2020 16:06
-
-
Save sonicoder86/e28b58175cbae800f98cb8adebdf98e6 to your computer and use it in GitHub Desktop.
Svelte Testing Crash Course - part 9
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
it('should modify state', () => { | |
const { store, onModify } = createStore(); | |
let info; | |
store.subscribe(value => info = value); | |
onModify('Modified by click'); | |
expect(info).toEqual('Modified by click'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment