From 458bf0fc628d9bcf6a59a0efb898045266dab6ba Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 25 Feb 2024 05:01:00 -0300 Subject: Explicit import from "node:process"; move log() to hero.mjs --- tests/js/utils.mjs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tests/js/utils.mjs') 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, ]); -- cgit v1.2.3