UNPKG

@sap_oss/wdio-qmate-service

Version:

[![REUSE status](https://api.reuse.software/badge/github.com/SAP/wdio-qmate-service)](https://api.reuse.software/info/github.com/SAP/wdio-qmate-service)[![Node.js CI](https://github.com/SAP/wdio-qmate-service/actions/workflows/node.js.yml/badge.svg)](http

76 lines (75 loc) 2.8 kB
/** * @class assertion * @memberof common */ export declare class Assertion { private vlf; /** * @function expectEqual * @memberOf common.assertion * @description Expects the passed values to be equal. * @param {Any} value1 - Value (1) to be equal to value (2) * @param {Any} value2 - Value (2) to be equal to value (1) * @example common.assertion.expectEqual(value1, value2); */ expectEqual(value1: any, value2: any): void; /** * @function expectUnequal * @memberOf common.assertion * @description Expects the passed values to be unequal. * @param {Any} value1 - Value (1) to be unequal to value (2) * @param {Any} value2 - Value (2) to be unequal to value (1) * @example common.assertion.expectUnequal(value1, value2); */ expectUnequal(value1: any, value2: any): void; /** * @function expectTrue * @memberOf common.assertion * @description Expects the passed value to be true. * @param {Any} value - Value to be equal to true * @example common.assertion.expectTrue(value); */ expectTrue(value: any): void; /** * @function expectFalse * @memberOf common.assertion * @description Expects the passed value to be false. * @param {Boolean} value - The value to be false. * @example common.assertion.expectFalse(false); */ expectFalse(value: any): void; /** * @function expectDefined * @memberOf common.assertion * @description Expects the passed values is defined. * @param {Any} value - Value to be defined (not undefined) * @example common.assertion.expectDefined(value); */ expectDefined(value: any): void; /** * @function expectUndefined * @memberOf common.assertion * @description Expects the passed values is undefined. * @param {Any} value - Value to be undefined * @example common.assertion.expectUndefined(value); */ expectUndefined(value: any): void; /** * @function expectUrlToBe * @memberOf common.assertion * @description Expects the url to be the passed value. * @example await common.assertion.expectUrlToBe("www.sap.com"); */ expectUrlToBe(urlExp: string): any; /** * @function expectToContain * @memberOf common.assertion * @description Expects the first passed value to contain the second passed value, after normalizing whitespace. * @param {string} value1 - The string expected to contain value2. * @param {string} value2 - The string expected to be found within value1. * @example await common.assertion.expectToContain("foo bar baz", "bar"); */ expectToContain(value1: string, value2: string): void; } declare const _default: Assertion; export default _default;