UNPKG

detox-allure2-adapter

Version:
27 lines 834 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ViewActionResult = exports.DetoxViewActions = void 0; const utils_1 = require("../../utils"); class DetoxViewActions { static click() { return new ViewActionResult('Click on'); } static typeText(text) { return new ViewActionResult('Type text in', { text }); } } exports.DetoxViewActions = DetoxViewActions; class ViewActionResult { actionName; params; constructor(actionName, params) { this.actionName = actionName; this.params = params; } format(matcher) { const baseMsg = (0, utils_1.msg)(this.actionName, this.params); return (0, utils_1.concat)(baseMsg, matcher); } } exports.ViewActionResult = ViewActionResult; //# sourceMappingURL=DetoxViewActions.js.map