Torkel Ödegaard 7 лет назад
Родитель
Сommit
a317158b72
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      public/app/features/folders/state/reducers.test.ts

+ 17 - 0
public/app/features/folders/state/reducers.test.ts

@@ -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);
+  });
+});