diff options
author | EuAndreh <eu@euandre.org> | 2024-02-25 05:01:00 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-02-25 05:01:00 -0300 |
commit | 458bf0fc628d9bcf6a59a0efb898045266dab6ba (patch) | |
tree | bb538753668dad5abc7eec4a65bf4f233b34d93a /tests/js/utils.mjs | |
parent | Normalize how modules import and name each other (diff) | |
download | papod-458bf0fc628d9bcf6a59a0efb898045266dab6ba.tar.gz papod-458bf0fc628d9bcf6a59a0efb898045266dab6ba.tar.xz |
Explicit import from "node:process"; move log() to hero.mjs
Diffstat (limited to 'tests/js/utils.mjs')
-rw-r--r-- | tests/js/utils.mjs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/js/utils.mjs b/tests/js/utils.mjs index e2475b0..5a1507c 100644 --- a/tests/js/utils.mjs +++ b/tests/js/utils.mjs @@ -8,7 +8,6 @@ import { assocIn, getIn, first, - log, promisify, } from "../../src/utils.mjs"; @@ -245,20 +244,6 @@ const test_first = t => { }); }; -const test_log = t => { - t.start("log()"); - - t.test("we can log data", () => { - log({ a: 1, type: "log-test" }); - }); - - t.test("we can't log unserializable things", () => { - const obj = { self: null }; - obj.self = obj; - assert.throws(() => log(obj), TypeError); - }); -}; - const test_promisify = t => { t.start("promisify()"); @@ -298,6 +283,5 @@ await runner.runTests([ test_assocIn, test_getIn, test_first, - test_log, test_promisify, ]); |