UNPKG

@thisisagile/easy-test

Version:

Straightforward library for testing microservices built with @thisisagile/easy

17 lines (16 loc) 463 B
import { match } from "../chunk-LN24S2PC.mjs"; import "../chunk-6EKWTLNQ.mjs"; import { isA } from "../chunk-O475TEG2.mjs"; // src/matchers/toBeValid.ts var toBeValid = (v) => match(v).undefined((s) => s, "Subject is undefined.").not((s) => isA(s, "isValid"), "Subject is not validatable.").not((s) => s.isValid, `Subject is not valid.`).else(`Subject is valid`); expect.extend({ toBeValid }); export { toBeValid }; //# sourceMappingURL=toBeValid.mjs.map