mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
Update jasmine (minor code change)
This commit is contained in:
parent
6ddf1a4fcc
commit
53fd514bb0
11
gulpfile.js
11
gulpfile.js
@ -37,19 +37,20 @@ module.exports = {
|
|||||||
"generate-third-party": generateThirdParty,
|
"generate-third-party": generateThirdParty,
|
||||||
};
|
};
|
||||||
|
|
||||||
function test(done) {
|
async function test(done) {
|
||||||
const jasmine = new Jasmine();
|
const jasmine = new Jasmine();
|
||||||
jasmine.loadConfigFile("specs/jasmine.json");
|
jasmine.loadConfigFile("specs/jasmine.json");
|
||||||
|
jasmine.exitOnCompletion = false;
|
||||||
jasmine.addReporter(
|
jasmine.addReporter(
|
||||||
new JasmineSpecReporter({
|
new JasmineSpecReporter({
|
||||||
displaySuccessfulSpec:
|
displaySuccessfulSpec:
|
||||||
!defined(argv.suppressPassed) || !argv.suppressPassed,
|
!defined(argv.suppressPassed) || !argv.suppressPassed,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
jasmine.execute();
|
const results = await jasmine.execute();
|
||||||
jasmine.onComplete(function (passed) {
|
if (argv.failTaskOnError && results.overallStatus === "failed") {
|
||||||
done(argv.failTaskOnError && !passed ? 1 : 0);
|
process.exitCode = 1;
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function testWatch() {
|
function testWatch() {
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"eslint-plugin-node": "^11.1.0",
|
"eslint-plugin-node": "^11.1.0",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"husky": "^4.3.8",
|
"husky": "^4.3.8",
|
||||||
"jasmine": "^3.10.0",
|
"jasmine": "^4.5.0",
|
||||||
"jasmine-spec-reporter": "^7.0.0",
|
"jasmine-spec-reporter": "^7.0.0",
|
||||||
"jsdoc": "^3.6.7",
|
"jsdoc": "^3.6.7",
|
||||||
"nyc": "^15.1.0",
|
"nyc": "^15.1.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user