@thisisagile/easy-test
Version:
Straightforward library for testing microservices built with @thisisagile/easy
15 lines (14 loc) • 555 B
JavaScript
import {
match
} from "../chunk-LN24S2PC.mjs";
import "../chunk-6EKWTLNQ.mjs";
import "../chunk-O475TEG2.mjs";
// src/matchers/toBeArrayOf.ts
var toBeArrayOf = (items, ctor) => match(items).undefined((it) => it, "Subject is undefined.").not((it) => it instanceof Array, "Subject is not an array.").not((it) => it.every((i) => i instanceof ctor), `Not all elements are of type '${ctor.name}'.`).else(`All elements in array are of type '${ctor.name}'`);
expect.extend({
toBeArrayOf
});
export {
toBeArrayOf
};
//# sourceMappingURL=toBeArrayOf.mjs.map