KT-22807: allow asynchronous testing in Kotlin/JS with QUnit

This commit is contained in:
gcx11
2019-04-01 00:55:45 +02:00
committed by Anton Bannykh
parent d98b1dfa7e
commit b49c5bf74e
6 changed files with 13 additions and 18 deletions
@@ -1,12 +1,6 @@
var Tester = require('./test-result-checker');
var full = require('./expected-outcomes');
var allAsyncPass = {};
for (var name in full) {
allAsyncPass[name] = name.startsWith('AsyncTest ') ? 'pass' : full[name];
}
var tester = new Tester(allAsyncPass, 'qunit');
var expectedOutcomes = require('./expected-outcomes');
var tester = new Tester(expectedOutcomes, 'qunit');
QUnit.testDone(function (details) {
var testName = (details.module.replace('> ', '') + ' ' + details.name).trim();