Files
freeCodeCamp/public/js/lib/coursewares/iFrameScripts_0.0.1.js
2015-05-10 21:59:55 -07:00

20 lines
496 B
JavaScript

(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]));
}
}
}
})();