JS: minor fixes in kotlin-test-js-it
Jasmine version 2.6.0 doesn't support Promise-based asynchronous tests. Also the error message for an unexpected test result was incorrect.
This commit is contained in:
@@ -30,7 +30,7 @@ Tester.prototype._check = function (name, result) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (result !== expected) {
|
if (result !== expected) {
|
||||||
this._errors.push('Unexpected test: "' + name + '"');
|
this._errors.push('Test "' + name + '" expected result "' + expected + '", actual result "' + result + '"');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"test-tape": "tape js/tape-reporter.js js/tape-plugin.js build/classes/kotlin/test/kotlin-test-js-it_test.js"
|
"test-tape": "tape js/tape-reporter.js js/tape-plugin.js build/classes/kotlin/test/kotlin-test-js-it_test.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jasmine": "^2.6.0",
|
"jasmine": "^2.9.0",
|
||||||
"jest": "^20.0.4",
|
"jest": "^20.0.4",
|
||||||
"mocha": "^3.4.2",
|
"mocha": "^3.4.2",
|
||||||
"qunit": "^1.0.0",
|
"qunit": "^1.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user