@santi100/assertion-lib
Advanced tools
Comparing version 1.0.2 to 1.0.3
class AssertionError extends Error { | ||
constructor(expected, actual, operator) { | ||
super(`Assertion failed! Expected ${expected}. Got ${actual} when using operator ${operator}.`) | ||
Object.setPrototypeOf(this, Object.assign(this, { expected, actual, operator })); | ||
Object.assign(this, { expected, actual, operator }); | ||
} | ||
@@ -6,0 +6,0 @@ } |
{ | ||
"name": "@santi100/assertion-lib", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "Other", |
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
5343