From dc88efecff80db86844977f14fef943d3dbadb80 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 14 Mar 2023 14:19:45 +0800 Subject: [PATCH] chore: fix tests --- __tests__/e2e/home.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__tests__/e2e/home.test.ts b/__tests__/e2e/home.test.ts index 9b02c1a2..76868361 100644 --- a/__tests__/e2e/home.test.ts +++ b/__tests__/e2e/home.test.ts @@ -14,12 +14,12 @@ describe('render correct content', async () => { pLocator.allTextContents() ]) - expect(h1Contents).toEqual(['Lorem Ipsum #']) - expect(h2Contents).toEqual([ - 'What is Lorem Ipsum? #', - 'Where does it come from? #', - 'Why do we use it? #', - 'Where can I get some? #' + expect(h1Contents).toEqual(['Lorem Ipsum \u200b']) + expect(h2Contents.map((s) => s.trim())).toEqual([ + 'What is Lorem Ipsum? \u200b', + 'Where does it come from? \u200b', + 'Why do we use it? \u200b', + 'Where can I get some? \u200b' ]) expect(pContents).toMatchSnapshot() })