return id node map when rebuild

This commit is contained in:
Yanzhen Yu
2018-10-12 12:43:16 +08:00
parent b3fdc44fc7
commit 1ddb0a3343
5 changed files with 23 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ describe('integration tests', () => {
const rebuildHtml = (await page.evaluate(`${this.code}
const x = new XMLSerializer();
const [snap] = rrweb.snapshot(document);
x.serializeToString(rrweb.rebuild(snap));
x.serializeToString(rrweb.rebuild(snap)[0]);
`)).replace(/\n\n/g, '');
await page.goto(`http://localhost:3030/html`);
await page.setContent(html.dest);