mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
make async node tests actually fail when they fail. Update tests that were failing
This commit is contained in:
parent
06708949a1
commit
210daf7324
5 changed files with 105 additions and 82 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue