insomnia/app/reducers/__tests__/requestGroups.test.js
2016-04-06 09:50:11 -07:00

31 lines
567 B
JavaScript

jest.unmock('../requestGroups');
jest.unmock('../../constants/actionTypes');
import reducer from '../requestGroups';
describe('RequestGroups Reducer', () => {
var initialState;
var requestGroup;
beforeEach(() => {
initialState = {
all: []
};
requestGroup = {
id: 'rg_1234567890',
created: Date.now(),
modified: Date.now(),
name: 'My Group',
environment: {},
children: []
};
});
it('returns initial state', () => {
expect(
reducer(undefined, {})
).toEqual(initialState);
});
});