fix(client): wait for async tests to finish
parent
f7db17b677
commit
8ee4a8f013
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue