Skip to content

Instantly share code, notes, and snippets.

@sonicoder86
Created July 22, 2020 16:06
Show Gist options
  • Save sonicoder86/e28b58175cbae800f98cb8adebdf98e6 to your computer and use it in GitHub Desktop.
Save sonicoder86/e28b58175cbae800f98cb8adebdf98e6 to your computer and use it in GitHub Desktop.
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