diff --git a/runtime_tests/bun/index.test.tsx b/runtime_tests/bun/index.test.tsx index 9264623ac6..6a58a6bade 100644 --- a/runtime_tests/bun/index.test.tsx +++ b/runtime_tests/bun/index.test.tsx @@ -114,7 +114,10 @@ describe('Serve Static Middleware', () => { const res = await app.request(new Request('http://localhost/favicon-notfound.ico')) expect(res.status).toBe(404) expect(res.headers.get('X-Custom')).toBe('Bun') - expect(onNotFound).toHaveBeenCalledWith('./runtime_tests/bun/favicon-notfound.ico') + expect(onNotFound).toHaveBeenCalledWith( + './runtime_tests/bun/favicon-notfound.ico', + expect.anything() + ) }) it('Should return 200 response - /static/plain.txt', async () => { diff --git a/src/adapter/cloudflare-workers/serve-static.test.ts b/src/adapter/cloudflare-workers/serve-static.test.ts index 2d1306850a..dd19fa5ab2 100644 --- a/src/adapter/cloudflare-workers/serve-static.test.ts +++ b/src/adapter/cloudflare-workers/serve-static.test.ts @@ -63,7 +63,7 @@ describe('ServeStatic Middleware', () => { it('Should return 404 response', async () => { const res = await app.request('http://localhost/static/not-found.html') expect(res.status).toBe(404) - expect(onNotFound).toHaveBeenCalledWith('assets/static/not-found.html') + expect(onNotFound).toHaveBeenCalledWith('assets/static/not-found.html', expect.anything()) }) it('Should return plan.txt', async () => {