mirror of
https://github.com/strapi/strapi.git
synced 2025-07-24 09:25:25 +00:00
22 lines
656 B
Handlebars
22 lines
656 B
Handlebars
// import produce from 'immer';
|
|
import {{camelCase name}}Reducer, { initialState } from '../reducer';
|
|
import { fixtures } from '../../../../../../../admin-test-utils';
|
|
// import { someAction } from '../actions';
|
|
|
|
/* eslint-disable default-case, no-param-reassign */
|
|
describe('{{camelCase name}}Reducer', () => {
|
|
let state;
|
|
beforeEach(() => {
|
|
state = {
|
|
...fixtures.store.state,
|
|
'{{plugin}}_{{camelCase name}}': initialState,
|
|
};
|
|
});
|
|
|
|
it('returns the initial state', () => {
|
|
const expectedResult = state['{{plugin}}_{{camelCase name}}'];
|
|
|
|
expect({{camelCase name}}Reducer(undefined, {})).toEqual(expectedResult);
|
|
});
|
|
});
|