UNPKG

expect-webdriverio

Version:

[![Test](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml/badge.svg)](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml)

16 lines (15 loc) 571 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toHaveTextContaining = void 0; const expectAdapter_1 = require("../../util/expectAdapter"); const toHaveText_1 = require("./toHaveText"); function toHaveTextContainingFn(el, text, options = {}) { return toHaveText_1.toHaveTextFn.call(this, el, text, { ...options, containing: true }); } function toHaveTextContaining(...args) { return expectAdapter_1.runExpect.call(this, toHaveTextContainingFn, args); } exports.toHaveTextContaining = toHaveTextContaining;