Skip to content

Commit

Permalink
unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy committed Nov 30, 2023
1 parent 82e12e6 commit 3980933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/controllers/item/shared/upsert-scenario.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("upsertScenario", () => {
const spy = jest.spyOn(require("../../../queries/scenario"), "createNewScenario")
await upsertScenario("projectName", "scenarioNAme", 0)
expect(spy).toHaveBeenCalledTimes(1)
expect(spy).toHaveBeenCalledWith("projectName", "scenarioNAme")
expect(spy).toHaveBeenCalledWith("projectName", "scenarioNAme", 0)
})
it("should not create scenario if it already exists and allowed by settings", async () => {
(db.one as any).mockResolvedValueOnce({ upsertScenario: true });
Expand Down

0 comments on commit 3980933

Please sign in to comment.