wip: working on reducer test
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user