From 5b46cea96e31751c4be28ef86a0a46d4752e138f Mon Sep 17 00:00:00 2001 From: Clement Denis Date: Thu, 11 Mar 2021 02:13:55 +0000 Subject: [PATCH] fix crashing tests --- js/tests/tell-it-cypher_test.mjs | 2 +- js/tests/tell-me-how-many_test.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tests/tell-it-cypher_test.mjs b/js/tests/tell-it-cypher_test.mjs index 33aa4807..46f3f1ec 100644 --- a/js/tests/tell-it-cypher_test.mjs +++ b/js/tests/tell-it-cypher_test.mjs @@ -25,7 +25,7 @@ export const setup = async ({ path }) => { return { data: fileContent } } - return { tmpPath: dir, run, encoded, decoded } + return { tmpPath: dir, run } } tests.push(async ({ path, eq, ctx }) => { diff --git a/js/tests/tell-me-how-many_test.mjs b/js/tests/tell-me-how-many_test.mjs index c53e7345..7f93471d 100644 --- a/js/tests/tell-me-how-many_test.mjs +++ b/js/tests/tell-me-how-many_test.mjs @@ -7,7 +7,7 @@ import { promisify } from 'util' const exec = promisify(cp.exec) export const tests = [] -export const setup = async ({ path }) => { +export const setup = async ({ path, between }) => { const randomFilesNumber = between(30, 6) const dir = `${tmpdir()}/tell-me-how-many`