Merge pull request #75 from ChainSafe/mpetrunic/fix/1810

Fix silent pass if no spec tests - #1810
This commit is contained in:
Lion - dapplion 2020-12-17 18:42:05 +01:00 committed by GitHub
commit e0b5089cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
});
try {
callback(bls);
} catch (e) {
it("Error generating test cases", function (done) {
done(e);
});
}
});
});
}