UNPKG

e2ed

Version:

E2E testing framework over Playwright

18 lines (17 loc) 645 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderScript = void 0; const client_1 = require("../client"); const renderScriptConstants_1 = require("./renderScriptConstants"); const renderScriptFunctions_1 = require("./renderScriptFunctions"); /** * Renders tag `<script>` with all report JavaScript code. * @internal */ const renderScript = () => (0, client_1.createSafeHtmlWithoutSanitize) ` <script async type="module"> ${(0, renderScriptConstants_1.renderScriptConstants)()}; ${(0, renderScriptFunctions_1.renderScriptFunctions)()}; initialScript(); </script>`; exports.renderScript = renderScript;