fix silent pass if no spec tests
This commit is contained in:
parent
0228256251
commit
112668bd4e
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Reference in New Issue