Browse Source

update test file, pass path to setup

content-update
Louise Foussat 3 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)}`),
)
const ctx = (await (setup && setup())) || {}
const ctx = (await (setup && setup({ path }))) || {}
const tools = { eq, fail, wait, code, ctx, path }
for (const [i, t] of tests.entries()) {
try {

Loading…
Cancel
Save