diff options
Diffstat (limited to 'tests/js/escape.mjs')
| -rw-r--r-- | tests/js/escape.mjs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/js/escape.mjs b/tests/js/escape.mjs index 8291391..359348a 100644 --- a/tests/js/escape.mjs +++ b/tests/js/escape.mjs @@ -5,21 +5,21 @@ import { escape, } from "../../src/escape.mjs"; -const test_escape = t => { +const test_escape = async t => { t.start("escape()"); - t.test("numbers", () => { + await t.test("numbers", () => { assert.equal(escape(0), "0"); assert.equal(escape(42), "42"); assert.equal(escape(-1), "-1"); }); - t.test("object", () => { + await t.test("object", () => { assert.equal(escape({}), "[object Object]"); assert.equal(escape({ k: "v" }), "[object Object]"); }); - t.test("string with special chars", () => { + await t.test("string with special chars", () => { assert.strictEqual(escape(`"`), """); assert.strictEqual(escape(`"bar`), ""bar"); assert.strictEqual(escape(`foo"`), "foo""); @@ -51,7 +51,7 @@ const test_escape = t => { assert.strictEqual(escape("foo>>bar"), "foo>>bar"); }); - t.test("the combination of all special characters", () => { + await t.test("the combination of all special characters", () => { assert.strictEqual( escape(`foo, "bar", 'baz' & <quux>`), "foo, "bar", 'baz' & <quux>", |
