Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit c411f1f

Browse files
committed
Use store constructor in loader-msg unit tests
1 parent ededcec commit c411f1f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/unit/computed/loader-msg.spec.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { observable, useStrict } from 'mobx';
1+
import { Store } from '../../../src/store';
22
import ComputedLoaderMsg from '../../../src/computed/loader-msg';
33
import {
44
LOADING_COPY_START,
@@ -12,10 +12,7 @@ describe('Computed Loader Msg Unit Tests', () => {
1212
let store;
1313

1414
beforeEach(() => {
15-
useStrict(false);
16-
store = observable({
17-
percentSynced: 0,
18-
});
15+
store = new Store();
1916
});
2017

2118
// TODO: figure out how error handling will work on network error

0 commit comments

Comments
 (0)