From 6a4525f507428fe5ada98cdd2ca2d699b0449fa5 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 26 Aug 2022 13:05:14 -0400 Subject: [PATCH] need to have action magic thrown in --- src/createStore.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/createStore.test.js b/src/createStore.test.js index 0612fe1..0defe9e 100644 --- a/src/createStore.test.js +++ b/src/createStore.test.js @@ -4,9 +4,16 @@ import { Updux } from './Updux.js'; test( "basic createStore", async () => { const foo = new Updux({ initial: { a: 1 }, + actions: { + a1: null, + } }); const store = foo.createStore(); expect(store.getState()).toEqual({a:1}); + + console.log(store.actions.a1); + + expect(store.actions.a1).toBeTypeOf('function'); });