Skip to content

Commit

Permalink
test: fix faulty i18n test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
orinokai committed Jul 23, 2024
1 parent 8e691dc commit a7620fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/middleware-conditions/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const config = {
source: '/hello',
},
{
source: '/nl-NL/about',
source: '/nl/about',
locale: false,
},
],
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/edge-handler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit a7620fd

Please sign in to comment.