Fixed passing collection tests
authorDaniel Kos <daniel.kos@contractors.roche.com>
Tue, 19 Jun 2018 06:51:46 +0000 (08:51 +0200)
committerDaniel Kos <daniel.kos@contractors.roche.com>
Tue, 19 Jun 2018 06:51:46 +0000 (08:51 +0200)
Feature #13632

Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos@contractors.roche.com>

src/store/collection/collection-reducer.test.ts

index c04217c769ce9651e1b55443c0066cc5214e080f..7b57ba7264430e50c9ec29a527f780157ccea2ce 100644 (file)
@@ -36,21 +36,6 @@ describe('collection-reducer', () => {
 
         const collections = [collection, collection];
         const state = collectionsReducer(initialState, actions.COLLECTIONS_SUCCESS({ collections }));
-        expect(state).toEqual([{
-                active: false,
-                open: false,
-                id: "test123",
-                items: [],
-                data: collection,
-                status: 0
-            }, {
-                active: false,
-                open: false,
-                id: "test123",
-                items: [],
-                data: collection,
-                status: 0
-            }
-        ]);
+        expect(state).toEqual([collection, collection]);
     });
 });