1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

remove URL requirement for DOM parser

This commit is contained in:
Ondřej Synáček
2020-07-16 16:48:05 +02:00
parent 456eaa1fbc
commit 9da4c33ffd
5 changed files with 43 additions and 36 deletions

View File

@@ -102,4 +102,23 @@ describe(retrieveICS, () => {
callback()
}
})
it('should contain normalized URL when using DOM parser', async () => {
const html = `
<html>
<head>
<title>Test</title>
</head>
<body>
</body>
</html>
`
setMockCrawlResult(html)
const icsContent = await retrieveICS('123', { logger })
expect(icsContent).to.include('URL:https://mobile.facebook.com/events/123')
})
})