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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user