Fix uncaught exceptions when testing
parent
28790899af
commit
266d653bf2
|
@ -72,7 +72,11 @@ function createTest({ title, tests = [], solutions = [] }) {
|
||||||
/* eslint-enable no-unused-vars */
|
/* eslint-enable no-unused-vars */
|
||||||
solutions.forEach(solution => {
|
solutions.forEach(solution => {
|
||||||
tests.forEach(test => {
|
tests.forEach(test => {
|
||||||
|
try {
|
||||||
eval(solution + ';;' + test);
|
eval(solution + ';;' + test);
|
||||||
|
} catch (e) {
|
||||||
|
t.fail(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue