lint
This commit is contained in:
parent
06866111d3
commit
268f67b17c
|
@ -62,10 +62,7 @@ describe("Ensure Tenant Ownership Middleware", () => {
|
||||||
await config.executeMiddleware()
|
await config.executeMiddleware()
|
||||||
|
|
||||||
expect(utils.getAppIdFromCtx).toHaveBeenCalledWith(config.ctx)
|
expect(utils.getAppIdFromCtx).toHaveBeenCalledWith(config.ctx)
|
||||||
expect(config.throw).toHaveBeenCalledWith(
|
expect(config.throw).toHaveBeenCalledWith(403, "Unauthorized")
|
||||||
403,
|
|
||||||
"Unauthorized",
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it("throws 400 when appId is missing", async () => {
|
it("throws 400 when appId is missing", async () => {
|
||||||
|
|
Loading…
Reference in New Issue