Skip to content

Commit

Permalink
fix: test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
kongmoumou committed Nov 17, 2024
1 parent 3a2691b commit 73a5f05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ describe('useTranslation', () => {
const bindLocaleDetector = (locale as LocaleDetector).bind(null, eventMock)
// @ts-ignore ignore type error because this is test
context.locale = bindLocaleDetector
// @ts-ignore ignore type error because this is test
eventMock.context.i18nLocale = bindLocaleDetector

// test `useTranslation`
const t = await useTranslation(eventMock)
Expand Down

0 comments on commit 73a5f05

Please sign in to comment.