postlight / parser

📜 Extract meaningful content from the chaos of a web page
https://reader.postlight.com
Apache License 2.0
5.37k stars 443 forks source link

chore: modifies check build test to differentiate between test environments #665

Closed jaehanley closed 2 years ago

jaehanley commented 2 years ago

Modifies scripts/check-build.test.js to differentiate between browser environments and non-browser environments title string.

jaehanley commented 2 years ago

Maybe the client side isn't using the extractor for CNN and falling back to the page title? Looks like the extractor for CNN defaults to looking for an H1 tag which wouldn't include the CNN site tag in it's string.