Browse Source

update test file, pass path to setup

pull/761/head
Louise Foussat 4 years ago committed by Clément
parent
commit
f2f85cd100
  1. 2
      js/tests/test.mjs

2
js/tests/test.mjs

@ -90,7 +90,7 @@ const runTests = async ({ url, path, code }) => {
fatal(`Unable to execute ${name} solution, error:\n${stackFmt(err, url)}`), fatal(`Unable to execute ${name} solution, error:\n${stackFmt(err, url)}`),
) )
const ctx = (await (setup && setup())) || {} const ctx = (await (setup && setup({ path }))) || {}
const tools = { eq, fail, wait, code, ctx, path } const tools = { eq, fail, wait, code, ctx, path }
for (const [i, t] of tests.entries()) { for (const [i, t] of tests.entries()) {
try { try {

Loading…
Cancel
Save