2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

make async node tests actually fail when they fail. Update tests that were failing

This commit is contained in:
d98762625
2019-10-07 17:41:51 +01:00
parent 06708949a1
commit 210daf7324
5 changed files with 105 additions and 82 deletions

View File

@@ -15,9 +15,9 @@
/**
* Print useful stack on error
*/
const wrapRun = (run) => () => {
const wrapRun = (run) => async () => {
try {
run();
await run();
} catch (e) {
console.dir(e);
throw e;