From 5f8f54f027e9e79cfe904ef0b7c010bcf04c1e53 Mon Sep 17 00:00:00 2001 From: Clement Denis Date: Fri, 29 May 2020 16:50:37 +0200 Subject: [PATCH] add return value for eq --- js/tests/test.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/tests/test.mjs b/js/tests/test.mjs index 98a0b3eb3..219681add 100644 --- a/js/tests/test.mjs +++ b/js/tests/test.mjs @@ -1,6 +1,6 @@ import { join as joinPath, dirname } from 'path' import { fileURLToPath } from 'url' -import { deepStrictEqual as eq } from 'assert' +import { deepStrictEqual } from 'assert' import * as fs from 'fs' const { readFile, writeFile } = fs.promises @@ -21,6 +21,7 @@ global.fetch = (url) => { const wait = delay => new Promise(s => setTimeout(s, delay)) const fail = fn => { try { fn() } catch (err) { return true } } +const eq = (a, b) => (deepStrictEqual(a, b), true) const name = process.argv[2] const fatal = (...args) => {