Dogfood the new jasmine-npm completion interface

This commit is contained in:
Steve Gravrock
2021-09-04 13:39:17 -07:00
parent 394be99832
commit 1c9382c990
2 changed files with 11 additions and 5 deletions
+10 -4
View File
@@ -40,11 +40,17 @@ module.exports = function(grunt) {
jasmine = new Jasmine({jasmineCore: jasmineCore});
jasmine.loadConfigFile('./spec/support/jasmine.json');
jasmine.onComplete(function(passed) {
done(passed);
});
jasmine.execute();
jasmine.exitOnCompletion = false;
jasmine.execute().then(
result => {
done(result.overallStatus === 'passed');
},
err => {
console.error(err);
exit(1);
}
);
}
);