We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7451ac4 commit 28dc2a9Copy full SHA for 28dc2a9
1 file changed
tests/utils.js
@@ -58,9 +58,9 @@ export const wait = (milliSeconds) =>
58
59
export const capitalize = (s) => `${s[0].toUpperCase}${s.slice(1)}`;
60
61
-export const catchError = (testFn) => (t) => {
+export const catchError = (testFn) => async (t) => {
62
try {
63
- testFn(t);
+ await testFn(t);
64
} catch (e) {
65
t.fail(e.message);
66
}
0 commit comments