Commit a317158b by Torkel Ödegaard

wip: working on reducer test

parent 78d36f78
import { Action, ActionTypes } from './actions';
import { inititalState, folderReducer } from './reducers';
describe('folder reducer', () => {
it('should set teams', () => {
const payload = [getMockTeam()];
const action: Action = {
type: ActionTypes.LoadTeams,
payload,
};
const result = teamsReducer(initialTeamsState, action);
expect(result.teams).toEqual(payload);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment