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