summaryrefslogtreecommitdiff
path: root/tests/js/utils.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/utils.mjs')
-rw-r--r--tests/js/utils.mjs33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/js/utils.mjs b/tests/js/utils.mjs
index d16bae8..edd804f 100644
--- a/tests/js/utils.mjs
+++ b/tests/js/utils.mjs
@@ -8,7 +8,6 @@ import {
assocIn,
getIn,
first,
- promisify,
partial,
strSortFn,
undefinedAsNull,
@@ -247,37 +246,6 @@ const test_first = t => {
});
};
-const test_promisify = t => {
- t.start("promisify()");
-
- t.test("we wrap the callbacky function", async () => {
- const okFn1 = (a, b, cb) =>
- setTimeout(() => cb(null, { a, b, ok: true }));
- const errFn1 = (a, b, c, cb) =>
- setTimeout(() => cb({ err: true, a }, "ignored"));
-
- const okFn2 = promisify(okFn1);
- const errFn2 = promisify(errFn1);
-
- assert.deepEqual(
- await okFn2("a-value", "b-value"),
- {
- a: "a-value",
- b: "b-value",
- ok: true,
- },
- );
-
- assert.rejects(
- async () => await errFn2("aa", "bb", "cc"),
- {
- err: true,
- a: "aa",
- },
- );
- });
-};
-
const test_partial = t => {
t.start("partial()");
@@ -388,7 +356,6 @@ await runner.runTests([
test_assocIn,
test_getIn,
test_first,
- test_promisify,
test_partial,
test_strSortFn,
test_undefinedAsNull,