From 03a8584f200de7c066bd879bde1a78d2377d96bf Mon Sep 17 00:00:00 2001 From: cosa65 Date: Fri, 29 Apr 2022 14:10:11 -0300 Subject: [PATCH] Fix test --- src/__test__/redux/reducers/samplesReducer.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/__test__/redux/reducers/samplesReducer.test.js b/src/__test__/redux/reducers/samplesReducer.test.js index f88770da75..e4f3495871 100644 --- a/src/__test__/redux/reducers/samplesReducer.test.js +++ b/src/__test__/redux/reducers/samplesReducer.test.js @@ -139,7 +139,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({ + lastModified: 'newLastModified', + ...mockFile, + }); expect(newState).toMatchSnapshot(); });