From d064f5ba5cc2fa592c0e7566560b05e9c4ed65dc Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 24 Feb 2024 15:47:19 -0300 Subject: Normalize how modules import and name each other Also add a `defaultInterceptors` variable in `src/hero.mjs` to avoid needing to redefine it in every application. --- tests/js/escape.mjs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/js/escape.mjs') diff --git a/tests/js/escape.mjs b/tests/js/escape.mjs index 2cad16a..8291391 100644 --- a/tests/js/escape.mjs +++ b/tests/js/escape.mjs @@ -1,6 +1,9 @@ import assert from "node:assert/strict"; -import { runTests } from "../runner.mjs"; -import { escape } from "../../src/escape.mjs"; + +import * as runner from "../runner.mjs"; +import { + escape, +} from "../../src/escape.mjs"; const test_escape = t => { t.start("escape()"); @@ -57,6 +60,6 @@ const test_escape = t => { }; -await runTests([ +await runner.runTests([ test_escape, ]); -- cgit v1.2.3