fix silent pass if no spec tests

This commit is contained in:
Marin Petrunić 2020-12-14 10:13:56 +01:00
parent 0228256251
commit 112668bd4e
No known key found for this signature in database
GPG Key ID: 834D07135E110DA5
1 changed files with 8 additions and 2 deletions

View File

@ -26,12 +26,18 @@ export async function runForAllImplementations(
export function describeForAllImplementations(callback: (bls: IBls) => void): void {
runForAllImplementations((bls, implementation) => {
describe(implementation, () => {
describe(implementation, function () {
before(async () => {
await bls.init();
});
callback(bls);
try {
callback(bls);
} catch (e) {
it("Error generating test cases", function (done) {
done(e);
});
}
});
});
}