diff options
Diffstat (limited to 'integration/snapshots/template-literal.hmr.js')
-rw-r--r-- | integration/snapshots/template-literal.hmr.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/integration/snapshots/template-literal.hmr.js b/integration/snapshots/template-literal.hmr.js index d6a731b50..a7ef232bf 100644 --- a/integration/snapshots/template-literal.hmr.js +++ b/integration/snapshots/template-literal.hmr.js @@ -1,10 +1,10 @@ import { __HMRModule as HMR -} from "http://localhost:8080/__runtime.js"; +} from "http://localhost:3000/__runtime.js"; import { __HMRClient as Bun -} from "http://localhost:8080/__runtime.js"; -Bun.activate(false); +} from "http://localhost:3000/__runtime.js"; +Bun.activate(true); var hmr = new HMR(2201713056, "template-literal.js"), exports = hmr.exports; (hmr._load = function() { @@ -31,11 +31,18 @@ var hmr = new HMR(2201713056, "template-literal.js"), exports = hmr.exports; after `; + const templateLiteralWhichDefinesAFunction = ((...args) => args[args.length - 1]().toString())` + before + 🙃 ${() => true} + after + +`; function test() { for (let foo of [fooNoBracesUT16, fooNoBracesUTF8, fooUTF16, fooUTF8]) { console.assert(foo.includes("before"), `Expected ${foo} to include "before"`); console.assert(foo.includes("after"), `Expected ${foo} to include "after"`); } + console.assert(templateLiteralWhichDefinesAFunction.includes("true"), "Expected fooFunction to include 'true'"); return testDone(import.meta.url); } hmr.exportAll({ |