diff --git a/package.json b/package.json index b602ea15..dfa19f6b 100644 --- a/package.json +++ b/package.json @@ -90,4 +90,4 @@ "rosie": "2.0.1", "semantic-release": "^20.1.3" } -} \ No newline at end of file +} diff --git a/src/data/redux.test.jsx b/src/data/redux.test.jsx index 5c5deaef..98fd3b42 100644 --- a/src/data/redux.test.jsx +++ b/src/data/redux.test.jsx @@ -53,10 +53,12 @@ describe('Data layer integration tests', () => { await executeThunk(thunks.getExamAttemptsData(courseId, contentId), store.dispatch); }; + // This is a shorthand to check snapshots with an assymetric matcher every time. const expectSpecialExamAttemptToMatchSnapshot = (data) => expect(data).toMatchSnapshot({ timer_ends: expect.any(String), }); + // This is a shorthand to check snapshots with an assymetric matcher every time. const expectStoreToMatchSnapshot = (data) => expect(data).toMatchSnapshot({ specialExams: { activeAttempt: {