Skip to content

Commit 1550cdc

Browse files
fix(tests): run test function only if present
Signed-off-by: Victor Adossi <[email protected]>
1 parent 99c8460 commit 1550cdc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/test.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,14 @@ suite('Bindings', () => {
248248
}
249249
throw e;
250250
}
251-
await test.test(instance, testArg);
251+
252+
// Run test function, if present
253+
//
254+
// Note that a test may not be present if simply loading the test
255+
// was intended to cause an error prior to this point
256+
if (test.test) {
257+
await test.test(instance, testArg);
258+
}
252259
});
253260
}
254261
});

0 commit comments

Comments
 (0)