Skip to content

Commit

Permalink
revert changes to SpecHelper (not needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Jan 10, 2025
1 parent 46c78a3 commit edccd66
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/unit/SpecHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function makePluginDoc(
"/src/core/dfn.js", // Needed for "plugins-done" event,
...plugins,
];
return getDoc(html`
return getDoc(`
<!DOCTYPE html>
<html lang="en">
<head>
Expand All @@ -45,21 +45,16 @@ export function makePluginDoc(
value: { ready: Promise.reject(err) },
});
}
await document.respec.ready;
}
}
run(${JSON.stringify(plugins)});
</script>
</head>
<body>
${body}
</body>
<body>${body}</body>
</html>
`);
}

export const html = String.raw;

/**
* @param {string} html
* @return {Promise<Document>}
Expand Down

0 comments on commit edccd66

Please sign in to comment.