Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Dec 18, 2023
1 parent f0a6be5 commit 8a6fbfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions playground/spa/__tests__/spa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ describe('e2e', () => {
})

test('should fallback to fallbackLng when language is not found', async () => {
await untilBrowserLogAfter(
() => page.goto(`${viteTestUrl}/?lang=not-exist`),
/.*Language 'not-exist' is detected.*/,
)
await untilBrowserLogAfter(() => page.goto(`${viteTestUrl}/?lang=not-exist`), /.*Current language is 'not-exist'*/)
})
})

Expand Down
5 changes: 1 addition & 4 deletions playground/vscode-setting/__tests__/vscode-setting.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ describe('e2e', () => {
})

test('should fallback to fallbackLng when language is not found', async () => {
await untilBrowserLogAfter(
() => page.goto(`${viteTestUrl}/?lang=not-exist`),
/.*Language 'not-exist' is detected.*/,
)
await untilBrowserLogAfter(() => page.goto(`${viteTestUrl}/?lang=not-exist`), /.*Current language is 'not-exist'*/)
})
})

Expand Down

0 comments on commit 8a6fbfb

Please sign in to comment.