@thisisagile/easy-test
Version:
Straightforward library for testing microservices built with @thisisagile/easy
20 lines (19 loc) • 559 B
JavaScript
import {
match
} from "../chunk-LN24S2PC.mjs";
import "../chunk-6EKWTLNQ.mjs";
import {
asString
} from "../chunk-O475TEG2.mjs";
// src/matchers/toMatchText.ts
var toMatchText = (value, text) => match(value).undefined((v) => v, "Subject is undefined.").undefined(() => text, "Text to match with is undefined.").not(
(v) => asString(v) === asString(text),
(v) => `Text '${v}' does not match with text '${text}'.`
).else((v) => `Text '${v}' matches`);
expect.extend({
toMatchText
});
export {
toMatchText
};
//# sourceMappingURL=toMatchText.mjs.map