Skip to content

Commit

Permalink
be sure saveModel mock returns object to avoid failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jun 14, 2024
1 parent c24f038 commit 8b83761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kolibri/plugins/coach/assets/test/useQuizCreation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const {

const _channel = { root: 'channel_1', name: 'Channel 1', kind: 'channel', is_leaf: false };
ChannelResource.fetchCollection = jest.fn(() => Promise.resolve([_channel]));
ExamResource.saveModel = jest.fn(() => Promise.resolve());
ExamResource.saveModel = jest.fn(() => Promise.resolve({}));

/**
* @param num {number} - The number of questions to create
Expand Down

0 comments on commit 8b83761

Please sign in to comment.