UNPKG

detox

Version:

E2E tests and automation for mobile

46 lines (37 loc) 896 B
/** This code is generated. For more information see generation/README.md. */ class WebExpect { static toNotExist(element) { return { target: element, method: "toNotExist", args: [] }; } static toExist(element) { return { target: element, method: "toExist", args: [] }; } static toHaveText(element, text) { if (typeof text !== "string") throw new Error("text should be a string, but got " + (text + (" (" + (typeof text + ")")))); return { target: element, method: "toHaveText", args: [text] }; } static toNotHaveText(element, text) { if (typeof text !== "string") throw new Error("text should be a string, but got " + (text + (" (" + (typeof text + ")")))); return { target: element, method: "toNotHaveText", args: [text] }; } } module.exports = WebExpect;