Skip to content

Commit 9948eef

Browse files
committed
test(overmind-svelte): fix test
1 parent b246bce commit 9948eef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/node_modules/overmind-svelte/src/CountTest.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
33
export let store
44
5-
$: count = $store.state.count
5+
const state = store.state
6+
7+
$: count = $state.count
68
let doubled = undefined
79
store.reaction(
810
(state) => state.count,

packages/node_modules/overmind-svelte/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('Svelte', () => {
3434
const overmind = new Overmind(app)
3535
const mixin = createMixin(overmind)
3636

37-
expect(typeof mixin.subscribe === 'function')
37+
expect(typeof mixin.state.subscribe === 'function')
3838
})
3939

4040
test('should display current state', () => {

0 commit comments

Comments
 (0)