aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test
diff options
context:
space:
mode:
Diffstat (limited to 'packages/0x.js/test')
-rw-r--r--packages/0x.js/test/utils/report_callback_errors.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/test/utils/report_callback_errors.ts b/packages/0x.js/test/utils/report_callback_errors.ts
index 4f9517704..8a8f4d966 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 (fAsync: (...args: any[]) => void|Promise<void>) => {
+ return (f: (...args: any[]) => void) => {
const wrapped = async (...args: any[]) => {
try {
- await fAsync(...args);
+ f(...args);
} catch (err) {
done(err);
}