mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-19 22:25:09 +02:00
19 lines
535 B
JavaScript
19 lines
535 B
JavaScript
import { createStore } from 'redux';
|
|
import { expect } from 'chai';
|
|
import rootReducer from './index';
|
|
import groups from './groups';
|
|
import choices from './choices';
|
|
import items from './items';
|
|
|
|
describe('rootReducer', () => {
|
|
const store = createStore(rootReducer);
|
|
|
|
it('returns expected reducers', () => {
|
|
const state = store.getState();
|
|
|
|
expect(state.groups).to.equal(groups(undefined, {}));
|
|
expect(state.choices).to.equal(choices(undefined, {}));
|
|
expect(state.items).to.equal(items(undefined, {}));
|
|
});
|
|
});
|