This commit is contained in:
Martin McKeaveney 2025-02-17 10:36:26 +00:00
parent 06866111d3
commit 268f67b17c
1 changed files with 1 additions and 4 deletions

View File

@ -62,10 +62,7 @@ describe("Ensure Tenant Ownership Middleware", () => {
await config.executeMiddleware()
expect(utils.getAppIdFromCtx).toHaveBeenCalledWith(config.ctx)
expect(config.throw).toHaveBeenCalledWith(
403,
"Unauthorized",
)
expect(config.throw).toHaveBeenCalledWith(403, "Unauthorized")
})
it("throws 400 when appId is missing", async () => {