(html: string)
| 99 | }); |
| 100 | |
| 101 | function writeIndex(html: string): string { |
| 102 | const path = join(tmpDir, "index.html"); |
| 103 | writeFileSync(path, html); |
| 104 | return path; |
| 105 | } |
| 106 | |
| 107 | it("returns [] when the project has no data-composition-variables declarations", () => { |
| 108 | const indexPath = writeIndex(`<html><body><div data-composition-id="x"></div></body></html>`); |