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,7 +1,6 @@
import tap from 'tap';
import { Updux } from './Updux.js';
import { Updux } from './Updux';
test('initial', () => {
const foo = new Updux({
initial: { root: 'abc' },
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 });
});