(htmlString: string)
| 83 | }) |
| 84 | |
| 85 | function parseHTML(htmlString: string) { |
| 86 | const dom = new JSDOM(htmlString) |
| 87 | return { |
| 88 | dom, |
| 89 | window: dom.window, |
| 90 | document: dom.window.document |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | test('Listings have valid api endpoints', async () => { |
| 95 | const { listingsDetails } = context |