UNPKG

@testwizard/commands-mobile

Version:

20 lines (16 loc) 490 B
'use strict'; const ResultBase = require('@testwizard/commands-core').ResultBase; class GetSizeResult extends ResultBase { constructor(result, successMessage, failMessage) { super(result.ok, successMessage, result.errorMessage || failMessage); /** * @type {number} */ this.width = result.width; /** * @type {number} */ this.height = result.height; } } module.exports = GetSizeResult;