fix(client): wait for async tests to finish

This commit is contained in:
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, catchError,
map, map,
toArray, toArray,
switchMap, mergeMap,
of, of,
from, from,
throwError throwError
@ -65,7 +65,7 @@ document.addEventListener('DOMContentLoaded', function() {
// Iterate through the test one at a time // Iterate through the test one at a time
// on new stacks // on new stacks
const results = from(tests).pipe( const results = from(tests).pipe(
switchMap(function runOneTest({ text, testString }) { mergeMap(function runOneTest({ text, testString }) {
const newTest = { text, testString }; const newTest = { text, testString };
let test; let test;
let __result; let __result;

View File

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