Skip to content

Commit a7620fd

Browse files
committed
test: fix faulty i18n test logic
1 parent 8e691dc commit a7620fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/fixtures/middleware-conditions/middleware.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const config = {
1919
source: '/hello',
2020
},
2121
{
22-
source: '/nl-NL/about',
22+
source: '/nl/about',
2323
locale: false,
2424
},
2525
],

tests/integration/edge-handler.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe("aborts middleware execution when the matcher conditions don't match th
261261

262262
ctx.cleanup?.push(() => origin.stop())
263263

264-
for (const path of ['/hello', '/en/hello', '/nl-NL/about']) {
264+
for (const path of ['/hello', '/en/hello', '/es/hello', '/nl/about']) {
265265
const response = await invokeEdgeFunction(ctx, {
266266
functions: ['___netlify-edge-handler-middleware'],
267267
origin,
@@ -275,7 +275,7 @@ describe("aborts middleware execution when the matcher conditions don't match th
275275
expect(response.status).toBe(200)
276276
}
277277

278-
for (const path of ['/hello/invalid', '/invalid/hello', '/about', '/en/about']) {
278+
for (const path of ['/hello/invalid', '/invalid/hello', '/about', '/en/about', '/es/about']) {
279279
const response = await invokeEdgeFunction(ctx, {
280280
functions: ['___netlify-edge-handler-middleware'],
281281
origin,

0 commit comments

Comments
 (0)