tests in ts

This commit is contained in:
Yanick Champoux 2021-10-15 10:33:55 -04:00
parent 6fb14a26d0
commit 83f28a1720

View File

@ -1,12 +1,12 @@
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: {
bar: new Updux({ initial: 123 }), bar: new Updux({ initial: 123 }),
}, },
}); });
tap.same(foo.initial, { root: 'abc', bar: 123 }); expect(foo.initial).toMatchObject({ root: 'abc', bar: 123 });
});