mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make test verify preparse is true
This commit is contained in:
parent
9b29a3c261
commit
e1d7eeed01
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]') ?? [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue