Skip to content

Commit

Permalink
Fixed "Correct french in description" test typo
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Dec 13, 2023
1 parent ef92bf0 commit 67bde36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ describe('Localization', () => {
const providersWithDesc = ['google'] //, 'bing']

for (const provider of providersWithDesc) {
const res = await handler({ q: 'minecraft', lang: 'zesglljesh', with: provider })
const descs = res.map((el) => el.desc).filter((desc) => desc?.includes('Jeu vidéo'))
const res = await handler({ q: 'minecraft', lang: 'fr', with: provider })
const hasAccentAigu = JSON.stringify(res).includes('é')

expect(descs.length > 0).toBe(true)
expect(hasAccentAigu).toBe(true)
}
})
})

0 comments on commit 67bde36

Please sign in to comment.