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:
@@ -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')
|
||||
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user