chore: fix tests

pull/2104/head
Evan You 2 years ago
parent 3aea38991c
commit dc88efecff

@ -14,12 +14,12 @@ describe('render correct content', async () => {
pLocator.allTextContents() pLocator.allTextContents()
]) ])
expect(h1Contents).toEqual(['Lorem Ipsum #']) expect(h1Contents).toEqual(['Lorem Ipsum \u200b'])
expect(h2Contents).toEqual([ expect(h2Contents.map((s) => s.trim())).toEqual([
'What is Lorem Ipsum? #', 'What is Lorem Ipsum? \u200b',
'Where does it come from? #', 'Where does it come from? \u200b',
'Why do we use it? #', 'Why do we use it? \u200b',
'Where can I get some? #' 'Where can I get some? \u200b'
]) ])
expect(pContents).toMatchSnapshot() expect(pContents).toMatchSnapshot()
}) })

Loading…
Cancel
Save