tests in ts
This commit is contained in:
parent
6fb14a26d0
commit
83f28a1720
@ -1,7 +1,6 @@
|
|||||||
import tap from 'tap';
|
import { Updux } from './Updux';
|
||||||
|
|
||||||
import { Updux } from './Updux.js';
|
|
||||||
|
|
||||||
|
test('initial', () => {
|
||||||
const foo = new Updux({
|
const foo = new Updux({
|
||||||
initial: { root: 'abc' },
|
initial: { root: 'abc' },
|
||||||
subduxes: {
|
subduxes: {
|
||||||
@ -9,4 +8,5 @@ const foo = new Updux({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
tap.same(foo.initial, { root: 'abc', bar: 123 });
|
expect(foo.initial).toMatchObject({ root: 'abc', bar: 123 });
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user