diff --git a/src/index.test.ts b/src/index.test.ts index 412331e..008d3b5 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -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) } }) })