From 1d069d43d49a5d80f67a092f9d61fa7ac58e4c8e Mon Sep 17 00:00:00 2001 From: Louise Foussat Date: Tue, 9 Mar 2021 16:44:36 +0000 Subject: [PATCH] details clean --- js/tests/happiness-manager_test.mjs | 1 - js/tests/tell-me-who_test.mjs | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/js/tests/happiness-manager_test.mjs b/js/tests/happiness-manager_test.mjs index a77b86484..1d9405bad 100644 --- a/js/tests/happiness-manager_test.mjs +++ b/js/tests/happiness-manager_test.mjs @@ -29,7 +29,6 @@ export const setup = async ({ path }) => { ? fileContent : JSON.parse(fileContent), stdout: output.stdout.trim(), - stderr: output.stderr.trim(), } } const resetAnswersIn = async ({ folder }) => { diff --git a/js/tests/tell-me-who_test.mjs b/js/tests/tell-me-who_test.mjs index 95fb8b0a2..7fb8d7c9d 100644 --- a/js/tests/tell-me-who_test.mjs +++ b/js/tests/tell-me-who_test.mjs @@ -1,11 +1,8 @@ import * as cp from 'child_process' -import fs from 'fs/promises' -import { join, resolve, isAbsolute } from 'path' +import { mkdir, writeFile } from 'fs/promises' +import { join, isAbsolute } from 'path' import { tmpdir } from 'os' import { promisify } from 'util' -const mkdir = fs.mkdir -const rmdir = fs.rmdir -const writeFile = fs.writeFile const exec = promisify(cp.exec)