Make test verify preparse is true

This commit is contained in:
Jackson Harper 2022-11-01 10:46:31 +08:00
parent 9b29a3c261
commit e1d7eeed01

View file

@ -157,7 +157,7 @@ describe('Newsletter email test', () => {
expect(handler).to.be.instanceOf(SubstackHandler)
const dom = parseHTML(html).document
expect(handler?.shouldPreParse(url, dom)).to.be
expect(handler?.shouldPreParse(url, dom)).to.be.true
const preparsed = await handler?.preParse(url, dom)
const tweets = Array.from(preparsed?.querySelectorAll('div[class="_omnivore-static-tweet"]') ?? [])