updux/src/createStore.test.js

13 lines
268 B
JavaScript

import { test, expect } from 'vitest';
import { Updux } from './Updux.js';
test( "basic createStore", async () => {
const foo = new Updux({
initial: { a: 1 },
});
const store = foo.createStore();
expect(store.getState()).toEqual({a:1});
});