fix(client): wait for async tests to finish
This commit is contained in:
@ -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;
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user