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'); });