diff --git a/src/__test__/redux/reducers/samplesReducer.test.js b/src/__test__/redux/reducers/samplesReducer.test.js index f88770da75..d839040d2d 100644 --- a/src/__test__/redux/reducers/samplesReducer.test.js +++ b/src/__test__/redux/reducers/samplesReducer.test.js @@ -111,7 +111,10 @@ describe('samplesReducer', () => { }); expect(newState[sample1.uuid].fileNames).toEqual([fileName]); - expect(newState[sample1.uuid].files[fileName]).toEqual(mockFile); + expect(newState[sample1.uuid].files[fileName]).toEqual({ + ...mockFile, + lastModified: 'newLastModified', + }); expect(newState).toMatchSnapshot(); }); @@ -139,7 +142,10 @@ describe('samplesReducer', () => { }); expect(newState[sample1.uuid].fileNames).toEqual([fileName]); - expect(newState[sample1.uuid].files[fileName]).toEqual(mockFile); + expect(newState[sample1.uuid].files[fileName]).toEqual({ + ...mockFile, + lastModified: 'newLastModified', + }); expect(newState).toMatchSnapshot(); });