Skip to content

Commit

Permalink
chore: Fixed son NIT comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rijuma committed Mar 1, 2024
1 parent c0206a9 commit be24626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
"rosie": "2.0.1",
"semantic-release": "^20.1.3"
}
}
}
2 changes: 2 additions & 0 deletions src/data/redux.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit be24626

Please sign in to comment.