mirror of
https://github.com/strapi/strapi.git
synced 2025-07-28 19:34:51 +00:00
22 lines
670 B
Handlebars
22 lines
670 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);
|
|
});
|
|
});
|