This commit is contained in:
Martin McKeaveney 2025-02-15 19:13:10 +00:00
parent d933e47754
commit 267a915b9b
1 changed files with 4 additions and 1 deletions

View File

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