Merge pull request #75 from ChainSafe/mpetrunic/fix/1810
Fix silent pass if no spec tests - #1810
This commit is contained in:
commit
e0b5089cd9
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Reference in New Issue