Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cosa65 committed Apr 29, 2022
1 parent 638c6c5 commit 1af303b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/__test__/redux/reducers/samplesReducer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

Expand Down Expand Up @@ -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();
});

Expand Down

0 comments on commit 1af303b

Please sign in to comment.