fix(tests): fix broken tests

This commit is contained in:
Valeriy S
2019-02-13 10:07:14 +03:00
committed by Bouncey
parent 98f979f3b4
commit 67140a4d33

View File

@ -280,9 +280,8 @@ async function createTestRunnerForDOMChallenge(
files[0].contents = solution; files[0].contents = solution;
} }
const loadEnzyme = files[0].ext === 'jsx'; const { build, sources, loadEnzyme } = await buildDOMChallenge({
files,
const { build, sources } = await buildDOMChallenge(files, {
required, required,
template template
}); });
@ -324,7 +323,7 @@ async function createTestRunnerForJSChallenge({ files }, solution) {
files[0].contents = solution; files[0].contents = solution;
} }
const { build, sources } = await buildJSChallenge(files); const { build, sources } = await buildJSChallenge({ files });
const code = sources && 'index' in sources ? sources['index'] : ''; const code = sources && 'index' in sources ? sources['index'] : '';
const testWorker = createWorker('test-evaluator'); const testWorker = createWorker('test-evaluator');