diff --git a/edge/test/worker.test.mjs b/edge/test/worker.test.mjs index 19d4899..c0565df 100644 --- a/edge/test/worker.test.mjs +++ b/edge/test/worker.test.mjs @@ -210,7 +210,11 @@ test("root storefront serves the honest Guard founding offer for exact GET and H assert.match(html, /No payment is due with this application/); assert.match(html, /not posted publicly/); assert.doesNotMatch(html, /email notification|we(?:'|’)ll notify/i); - const inlineScript = html.match(/", scriptStart); + const inlineScript = scriptStart === -1 || scriptEnd === -1 + ? undefined + : html.slice(scriptStart + "