Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Svelte Testing Crash Course - part 9
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
You can’t perform that action at this time.