Added central action for navigation
[arvados-workbench2.git] / src / store / collection / collection-reducer.test.ts
index 7b57ba7264430e50c9ec29a527f780157ccea2ce..7bc1aec994eb3271690e5a665f0772e9df901418 100644 (file)
@@ -4,6 +4,7 @@
 
 import collectionsReducer from "./collection-reducer";
 import actions from "./collection-action";
+import { ResourceKind } from "../../models/resource";
 
 describe('collection-reducer', () => {
     it('should add new collection to the list', () => {
@@ -15,7 +16,7 @@ describe('collection-reducer', () => {
             modifiedAt: '2018-01-01',
             ownerUuid: 'owner-test123',
             uuid: 'test123',
-            kind: ""
+            kind: ResourceKind.COLLECTION
         };
 
         const state = collectionsReducer(initialState, actions.CREATE_COLLECTION(collection));
@@ -31,7 +32,7 @@ describe('collection-reducer', () => {
             modifiedAt: '2018-01-01',
             ownerUuid: 'owner-test123',
             uuid: 'test123',
-            kind: ""
+            kind: ResourceKind.COLLECTION
         };
 
         const collections = [collection, collection];