diff --git a/src/lib/middleware/api-token-middleware.test.ts b/src/lib/middleware/api-token-middleware.test.ts index 1222d06585..c5861050b6 100644 --- a/src/lib/middleware/api-token-middleware.test.ts +++ b/src/lib/middleware/api-token-middleware.test.ts @@ -35,7 +35,7 @@ test('should not do anything if request does not contain a authorization', async await func(req, undefined, cb); - expect(req.header).toHaveBeenCalledTimes(1); + expect(req.header).toHaveBeenCalledTimes(2); expect(cb).toHaveBeenCalledTimes(1); });