@serenity-js/assertions
Advanced tools
Comparing version 2.0.1-alpha.36 to 2.0.1-alpha.37
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.1-alpha.37](https://github.com/jan-molak/serenity-js/compare/v2.0.1-alpha.36...v2.0.1-alpha.37) (2019-03-25) | ||
### Bug Fixes | ||
* **core:** All interactions extend Interaction rather than implement it to ensure they're correctly ([cef97af](https://github.com/jan-molak/serenity-js/commit/cef97af)) | ||
## [2.0.1-alpha.36](https://github.com/jan-molak/serenity-js/compare/v2.0.1-alpha.35...v2.0.1-alpha.36) (2019-03-25) | ||
@@ -8,0 +19,0 @@ |
import { Activity, AnswersQuestions, KnowableUnknown, PerformsTasks, Task } from '@serenity-js/core'; | ||
import { Expectation } from './Expectation'; | ||
export declare class Check<Actual> implements Task { | ||
export declare class Check<Actual> extends Task { | ||
private readonly actual; | ||
@@ -5,0 +5,0 @@ private readonly expectation; |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
@@ -7,11 +20,15 @@ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@serenity-js/core"); | ||
var io_1 = require("@serenity-js/core/lib/io"); | ||
var outcomes_1 = require("./outcomes"); | ||
var Check = /** @class */ (function () { | ||
var Check = /** @class */ (function (_super) { | ||
__extends(Check, _super); | ||
function Check(actual, expectation, activities, alternativeActivities) { | ||
if (alternativeActivities === void 0) { alternativeActivities = []; } | ||
this.actual = actual; | ||
this.expectation = expectation; | ||
this.activities = activities; | ||
this.alternativeActivities = alternativeActivities; | ||
var _this = _super.call(this) || this; | ||
_this.actual = actual; | ||
_this.expectation = expectation; | ||
_this.activities = activities; | ||
_this.alternativeActivities = alternativeActivities; | ||
return _this; | ||
} | ||
@@ -53,5 +70,5 @@ Check.whether = function (actual, expectation) { | ||
return Check; | ||
}()); | ||
}(core_1.Task)); | ||
exports.Check = Check; | ||
var templateObject_1; | ||
//# sourceMappingURL=Check.js.map |
import { AnswersQuestions, Interaction, KnowableUnknown } from '@serenity-js/core'; | ||
import { Expectation } from './Expectation'; | ||
export declare class Ensure<Actual> implements Interaction { | ||
export declare class Ensure<Actual> extends Interaction { | ||
private readonly actual; | ||
@@ -5,0 +5,0 @@ private readonly expectation; |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { | ||
@@ -11,6 +24,9 @@ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } | ||
var outcomes_1 = require("./outcomes"); | ||
var Ensure = /** @class */ (function () { | ||
var Ensure = /** @class */ (function (_super) { | ||
__extends(Ensure, _super); | ||
function Ensure(actual, expectation) { | ||
this.actual = actual; | ||
this.expectation = expectation; | ||
var _this = _super.call(this) || this; | ||
_this.actual = actual; | ||
_this.expectation = expectation; | ||
return _this; | ||
} | ||
@@ -44,5 +60,5 @@ Ensure.that = function (actual, expectation) { | ||
return Ensure; | ||
}()); | ||
}(core_1.Interaction)); | ||
exports.Ensure = Ensure; | ||
var templateObject_1, templateObject_2, templateObject_3; | ||
//# sourceMappingURL=Ensure.js.map |
{ | ||
"name": "@serenity-js/assertions", | ||
"version": "2.0.1-alpha.36", | ||
"version": "2.0.1-alpha.37", | ||
"description": "Screenplay-style assertion library", | ||
@@ -48,5 +48,5 @@ "author": { | ||
"devDependencies": { | ||
"@documentation/esdoc-template": "2.0.1-alpha.36", | ||
"@integration/testing-tools": "2.0.1-alpha.36", | ||
"@serenity-js/core": "2.0.1-alpha.36", | ||
"@documentation/esdoc-template": "2.0.1-alpha.37", | ||
"@integration/testing-tools": "2.0.1-alpha.37", | ||
"@serenity-js/core": "2.0.1-alpha.37", | ||
"tiny-types": "1.12.1" | ||
@@ -77,3 +77,3 @@ }, | ||
}, | ||
"gitHead": "2952f29818bd913495a53e78ce1668323c87047a" | ||
"gitHead": "7e9e91078fee490a8a86411171658b1eada62fc0" | ||
} |
@@ -6,3 +6,3 @@ import { Activity, AnswersQuestions, KnowableUnknown, PerformsTasks, Task } from '@serenity-js/core'; | ||
export class Check<Actual> implements Task { | ||
export class Check<Actual> extends Task { | ||
static whether<A>(actual: KnowableUnknown<A>, expectation: Expectation<any, A>) { | ||
@@ -20,2 +20,3 @@ return { | ||
) { | ||
super(); | ||
} | ||
@@ -22,0 +23,0 @@ |
@@ -8,3 +8,3 @@ import { AnswersQuestions, AssertionError, Interaction, KnowableUnknown, Log, LogicError } from '@serenity-js/core'; | ||
export class Ensure<Actual> implements Interaction { | ||
export class Ensure<Actual> extends Interaction { | ||
static that<A>(actual: KnowableUnknown<A>, expectation: Expectation<any, A>) { | ||
@@ -18,2 +18,3 @@ return new Ensure(actual, expectation); | ||
) { | ||
super(); | ||
} | ||
@@ -20,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93620
1154