Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mountler committed Nov 6, 2023
1 parent 7e8c02e commit 9c34cec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ describe("LoadExternalLearningElementUseCase", () => {
expect(worldPortMock.onLearningElementLoaded).toHaveBeenCalledWith({
id: 1,
filePath: "path",
isScoreable: false,
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe("LearningElementModalPresenter", () => {
parentWorldID: 0,
hasScored: false,
model: LearningElementModelTypeEnums.TextElementModelTypes.Bookshelf1,
isScoreable: true,
};

systemUnderTest.onLearningElementLoaded(elementTO);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ describe("LearningElementsDropdownController", () => {
systemUnderTest.startLearningElement(1337);

expect(useCaseMock.executeAsync).toHaveBeenCalledTimes(1);
expect(useCaseMock.executeAsync).toHaveBeenCalledWith(1337);
expect(useCaseMock.executeAsync).toHaveBeenCalledWith({
elementID: 1337,
isScoreable: true,
});
});
});

0 comments on commit 9c34cec

Please sign in to comment.