@serenity-js/assertions
Advanced tools
Comparing version 3.3.1 to 3.4.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [3.4.0](https://github.com/serenity-js/serenity-js/compare/v3.3.1...v3.4.0) (2023-06-10) | ||
**Note:** Version bump only for package @serenity-js/assertions | ||
## [3.3.1](https://github.com/serenity-js/serenity-js/compare/v3.3.0...v3.3.1) (2023-06-08) | ||
@@ -8,0 +16,0 @@ |
@@ -138,3 +138,3 @@ "use strict"; | ||
throw core_1.RaiseErrors.as(actor).create(typeOfRuntimeError, { | ||
message: message !== null && message !== void 0 ? message : error.message, | ||
message: message ?? error.message, | ||
location, | ||
@@ -141,0 +141,0 @@ cause: error |
@@ -103,7 +103,7 @@ "use strict"; | ||
const actualDescription = (0, core_1.d) `${this.actual}`; | ||
const message = outcome ? `Expected ${actualDescription} to eventually ${outcome === null || outcome === void 0 ? void 0 : outcome.message}` : error.message; | ||
const message = outcome ? `Expected ${actualDescription} to eventually ${outcome?.message}` : error.message; | ||
throw core_1.RaiseErrors.as(actor).create(core_1.AssertionError, { | ||
message, | ||
expectation: outcome === null || outcome === void 0 ? void 0 : outcome.expectation, | ||
diff: outcome && { expected: outcome === null || outcome === void 0 ? void 0 : outcome.expected, actual: outcome === null || outcome === void 0 ? void 0 : outcome.actual }, | ||
expectation: outcome?.expectation, | ||
diff: outcome && { expected: outcome?.expected, actual: outcome?.actual }, | ||
location: this.instantiationLocation(), | ||
@@ -135,3 +135,3 @@ cause: error, | ||
throw core_1.RaiseErrors.as(actor).create(typeOfRuntimeError, { | ||
message: message !== null && message !== void 0 ? message : error.message, | ||
message: message ?? error.message, | ||
location, | ||
@@ -138,0 +138,0 @@ cause: error, |
@@ -43,3 +43,3 @@ "use strict"; | ||
} | ||
return new core_1.ExpectationMet(description, outcome === null || outcome === void 0 ? void 0 : outcome.expectation, outcome === null || outcome === void 0 ? void 0 : outcome.expected, outcome === null || outcome === void 0 ? void 0 : outcome.actual); | ||
return new core_1.ExpectationMet(description, outcome?.expectation, outcome?.expected, outcome?.actual); | ||
}); | ||
@@ -46,0 +46,0 @@ this.expectations = expectations; |
{ | ||
"name": "@serenity-js/assertions", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Screenplay-style assertion library", | ||
@@ -46,3 +46,3 @@ "author": { | ||
"dependencies": { | ||
"@serenity-js/core": "3.3.1", | ||
"@serenity-js/core": "3.4.0", | ||
"tiny-types": "^1.19.1" | ||
@@ -60,3 +60,3 @@ }, | ||
}, | ||
"gitHead": "d036ce75c1eb131d3cde28b04e668dc24f959e2f" | ||
"gitHead": "e69967f05819bc21324f537afc66ddb73adf772d" | ||
} |
Sorry, the diff of this file is not supported yet
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
181426
+ Added@serenity-js/core@3.4.0(transitive)
- Removed@serenity-js/core@3.3.1(transitive)
Updated@serenity-js/core@3.4.0