diff --git a/src/lib/__tests__/recipient-suggestions.test.ts b/src/lib/__tests__/recipient-suggestions.test.ts index 8af072e6..25862761 100644 --- a/src/lib/__tests__/recipient-suggestions.test.ts +++ b/src/lib/__tests__/recipient-suggestions.test.ts @@ -87,6 +87,7 @@ describe('composer suggestions wiring', () => { expect(src).toMatch(/const results = await searchRecipients\(q\);/); expect(src).toMatch(/if \(!q \|\| searchingServer \|\| loginMovedFrom\(ownerLoginRef\.current\)\) return;/); expect(src).toMatch(/onSearchServer=\{canSearchServer \?/); - expect(src).toMatch(/t\('email_composer\.autocomplete_search_server', 'Search the server'\)/); + const list = fs.readFileSync(path.resolve(__dirname, '../../components/compose/RecipientSuggestionList.tsx'), 'utf8'); + expect(list).toMatch(/t\('email_composer\.autocomplete_search_server', 'Search the server'\)/); }); });