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 {
|
export function describeForAllImplementations(callback: (bls: IBls) => void): void {
|
||||||
runForAllImplementations((bls, implementation) => {
|
runForAllImplementations((bls, implementation) => {
|
||||||
describe(implementation, () => {
|
describe(implementation, function () {
|
||||||
before(async () => {
|
before(async () => {
|
||||||
await bls.init();
|
await bls.init();
|
||||||
});
|
});
|
||||||
|
|
||||||
callback(bls);
|
try {
|
||||||
|
callback(bls);
|
||||||
|
} catch (e) {
|
||||||
|
it("Error generating test cases", function (done) {
|
||||||
|
done(e);
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue