fix(client): wait for async tests to finish

pull/24159/head^2
Valeriy 2018-12-07 01:42:50 +03:00 committed by Stuart Taylor
parent f7db17b677
commit 8ee4a8f013
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ document.addEventListener('DOMContentLoaded', function() {
catchError,
map,
toArray,
switchMap,
mergeMap,
of,
from,
throwError
@ -65,7 +65,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Iterate through the test one at a time
// on new stacks
const results = from(tests).pipe(
switchMap(function runOneTest({ text, testString }) {
mergeMap(function runOneTest({ text, testString }) {
const newTest = { text, testString };
let test;
let __result;

View File

@ -5,7 +5,7 @@ import {
map,
toArray,
delay,
switchMap,
mergeMap,
timeout,
catchError
} from 'rxjs/operators';
@ -98,7 +98,7 @@ const addDepsToDocument = ctx => {
map,
toArray,
delay,
switchMap,
mergeMap,
timeout,
catchError
},