UNPKG

kizu

Version:

An easy-to-use, fast, and defensive Typescript/Javascript test runner designed to help you to write simple, readable, and maintainable tests.

15 lines 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isTestPassing = isTestPassing; /** * All assertions must pass, with no errors, and at least one assertion. * @param test */ function isTestPassing(test) { if (!test.assertions.length) return false; if (test.error) return false; return test.assertions.reduce((pass, assertion) => pass && assertion.pass, true); } //# sourceMappingURL=isTestPassing.js.map