Browse Source

details clean

pull/761/head
Louise Foussat 4 years ago committed by Clément
parent
commit
1d069d43d4
  1. 1
      js/tests/happiness-manager_test.mjs
  2. 7
      js/tests/tell-me-who_test.mjs

1
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 }) => {

7
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)

Loading…
Cancel
Save