From 83f28a1720edae895427f4659083803c7f39756a Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 15 Oct 2021 10:33:55 -0400 Subject: [PATCH] tests in ts --- src/initial.test.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 });