improve bonfires and js coursewares

This commit is contained in:
Quincy Larson
2015-05-10 21:59:55 -07:00
parent 40a58ec7e7
commit d63b8f01be
10 changed files with 24 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
(function() {
var expect = chai.expect;
var tests = parent.tests;
for (var i = 0; i < tests.length; i++) {
var thisTest = true;
try {
eval(parent.tests[i]);
} catch (err) {
allTestsGood = false;
thisTest = false;
parent.postError(JSON.stringify(tests[i].message));
} finally {
if (thisTest) {
parent.postSuccess(JSON.stringify(tests[i]));
}
}
}
})();