diff --git a/website/tests/pages/sequences/accession.fa.spec.ts b/website/tests/pages/sequences/accession.fa.spec.ts index 65b6fdf81..88d57bbc4 100644 --- a/website/tests/pages/sequences/accession.fa.spec.ts +++ b/website/tests/pages/sequences/accession.fa.spec.ts @@ -10,7 +10,7 @@ test.describe('The sequence.fa page', () => { const url = `${baseUrl}${routes.sequencesFastaPage(testSequences.testSequenceEntry)}`; const response = await fetch(url); const content = await response.text(); - expect(content).toBe( + expect(content.replace(/\n\n+/g, '\n')).toBe( `>${getAccessionVersionString(testSequences.testSequenceEntry)}\n${testSequenceEntryData.unaligned}\n`, ); });