diff --git a/tests/fixtures/middleware-conditions/middleware.ts b/tests/fixtures/middleware-conditions/middleware.ts index d5a3c51045..fdb332cf8e 100644 --- a/tests/fixtures/middleware-conditions/middleware.ts +++ b/tests/fixtures/middleware-conditions/middleware.ts @@ -19,7 +19,7 @@ export const config = { source: '/hello', }, { - source: '/nl-NL/about', + source: '/nl/about', locale: false, }, ], diff --git a/tests/integration/edge-handler.test.ts b/tests/integration/edge-handler.test.ts index 8f26a851f4..9353ca4415 100644 --- a/tests/integration/edge-handler.test.ts +++ b/tests/integration/edge-handler.test.ts @@ -261,7 +261,7 @@ describe("aborts middleware execution when the matcher conditions don't match th ctx.cleanup?.push(() => origin.stop()) - for (const path of ['/hello', '/en/hello', '/nl-NL/about']) { + for (const path of ['/hello', '/en/hello', '/es/hello', '/nl/about']) { const response = await invokeEdgeFunction(ctx, { functions: ['___netlify-edge-handler-middleware'], origin, @@ -275,7 +275,7 @@ describe("aborts middleware execution when the matcher conditions don't match th expect(response.status).toBe(200) } - for (const path of ['/hello/invalid', '/invalid/hello', '/about', '/en/about']) { + for (const path of ['/hello/invalid', '/invalid/hello', '/about', '/en/about', '/es/about']) { const response = await invokeEdgeFunction(ctx, { functions: ['___netlify-edge-handler-middleware'], origin,