aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/utils/report_callback_errors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/0x.js/test/utils/report_callback_errors.ts')
-rw-r--r--packages/0x.js/test/utils/report_callback_errors.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/test/utils/report_callback_errors.ts b/packages/0x.js/test/utils/report_callback_errors.ts
index d471b2af2..4f9517704 100644
--- a/packages/0x.js/test/utils/report_callback_errors.ts
+++ b/packages/0x.js/test/utils/report_callback_errors.ts
@@ -1,10 +1,10 @@
import { DoneCallback } from '../../src/types';
export const reportCallbackErrors = (done: DoneCallback) => {
- return (f: (...args: any[]) => void) => {
- const wrapped = (...args: any[]) => {
+ return (fAsync: (...args: any[]) => void|Promise<void>) => {
+ const wrapped = async (...args: any[]) => {
try {
- f(...args);
+ await fAsync(...args);
} catch (err) {
done(err);
}