initial test
This commit is contained in:
parent
d61c9478a2
commit
5eeb4d4ab7
12
src/initial.test.js
Normal file
12
src/initial.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
import tap from 'tap';
|
||||
|
||||
import { Updux } from './Updux.js';
|
||||
|
||||
const foo = new Updux({
|
||||
initial: { root: 'abc' },
|
||||
subduxes: {
|
||||
bar: new Updux({ initial: 123 }),
|
||||
},
|
||||
});
|
||||
|
||||
tap.same(foo.initial, { root: 'abc', bar: 123 });
|
@ -1,15 +0,0 @@
|
||||
import { dux } from '.';
|
||||
import tap from 'tap';
|
||||
|
||||
const foo = dux({
|
||||
initial: { root: 'abc' },
|
||||
coduxes: [
|
||||
dux({ initial: { co: 'works' } }),
|
||||
dux({ initial: { co2: 'works' } }),
|
||||
],
|
||||
subduxes: {
|
||||
bar: dux({ initial: 123 }),
|
||||
},
|
||||
});
|
||||
|
||||
tap.same(foo.initial, { root: 'abc', co: 'works', co2: 'works', bar: 123 });
|
Loading…
Reference in New Issue
Block a user