diff --git a/src/initial.test.js b/src/initial.test.js index 9b2f7e7..f0188ea 100644 --- a/src/initial.test.js +++ b/src/initial.test.js @@ -1,12 +1,12 @@ -import tap from 'tap'; +import { Updux } from './Updux'; -import { Updux } from './Updux.js'; +test('initial', () => { + const foo = new Updux({ + initial: { root: 'abc' }, + subduxes: { + bar: new Updux({ initial: 123 }), + }, + }); -const foo = new Updux({ - initial: { root: 'abc' }, - subduxes: { - bar: new Updux({ initial: 123 }), - }, + expect(foo.initial).toMatchObject({ root: 'abc', bar: 123 }); }); - -tap.same(foo.initial, { root: 'abc', bar: 123 });