UNPKG

systelab-components-test

Version:

Widgets to be use in the E2E Tests based in Protractor

23 lines (22 loc) 629 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var MyExpectation = /** @class */ (function () { function MyExpectation(reason) { this.reason = reason; } MyExpectation.prototype.expect = function (actual) { if (this.reason) { return allure.createStep(this.reason, function () { return expect(actual); })(); } else { return expect(actual); } }; return MyExpectation; }()); function because(reason) { return new MyExpectation(reason); } exports.because = because;