assertthat
Version:
assertthat provides fluent TDD.
28 lines (27 loc) • 772 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.assert = void 0;
const assertions_1 = require("./assertions/combined/assertions");
// eslint-disable-next-line consistent-this
const that = function (actual) {
return {
is: {
...(0, assertions_1.getCombinedAssertions)(actual),
not: {
...(0, assertions_1.getNegatedCombinedAssertions)(actual)
}
}
};
};
that.eachElementOf = (actualCollection) => ({
is: {
...(0, assertions_1.getCombinedAssertionsForEach)(actualCollection),
not: {
...(0, assertions_1.getNegatedCombinedAssertionsForEach)(actualCollection)
}
}
});
const assert = {
that
};
exports.assert = assert;