e2ed
Version:
E2E testing framework over Playwright
23 lines (22 loc) • 1.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.assertionMessageGetters = void 0;
const valueToString_1 = require("../valueToString");
/**
* Assertion message getters.
* @internal
*/
exports.assertionMessageGetters = {
contains: (expected) => `contains ${(0, valueToString_1.valueToString)(expected)}`,
eql: (expected) => `is deeply equal to ${(0, valueToString_1.valueToString)(expected)}`,
gt: (expected) => `is strictly greater than ${(0, valueToString_1.valueToString)(expected)}`,
gte: (expected) => `is greater than or equal to ${(0, valueToString_1.valueToString)(expected)}`,
lt: (expected) => `is less than ${(0, valueToString_1.valueToString)(expected)}`,
lte: (expected) => `is less than or equal to ${(0, valueToString_1.valueToString)(expected)}`,
match: (re) => `matches the regular expression ${(0, valueToString_1.valueToString)(re)}`,
notContains: (unexpected) => `not contains ${(0, valueToString_1.valueToString)(unexpected)}`,
notEql: (unexpected) => `is not deeply equal to ${(0, valueToString_1.valueToString)(unexpected)}`,
notOk: () => 'is falsy',
ok: () => 'is truthy',
toMatchScreenshot: (expected) => `matches the expected screenshot ${(0, valueToString_1.valueToString)(expected)}`,
};