Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Mar 19, 2024
1 parent 675a1e8 commit d270f06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
},
"author": "hemengke <https://github.com/hemengke1997>",
"files": [
"*.d.ts",
"CHANGELOG.md",
"README.md",
"dist",
"*.d.ts"
"dist"
],
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down
5 changes: 4 additions & 1 deletion playground/spa/__tests__/spa.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ describe('e2e', () => {
})

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

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

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

Expand Down

0 comments on commit d270f06

Please sign in to comment.