chai-as-promised
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -8,2 +8,3 @@ "use strict"; | ||
const assert = chai.assert; | ||
const proxify = utils.proxify; | ||
@@ -40,2 +41,6 @@ // If we are using a version of Chai that has checkError on it, | ||
function proxifyIfSupported(assertion) { | ||
return proxify === undefined ? assertion : proxify(assertion); | ||
} | ||
function method(name, asserter) { | ||
@@ -51,3 +56,3 @@ utils.addMethod(Assertion.prototype, name, function () { | ||
assertIsAboutPromise(this); | ||
return asserter.apply(this, arguments); | ||
return proxifyIfSupported(asserter.apply(this, arguments)); | ||
}); | ||
@@ -278,3 +283,3 @@ } | ||
Assertion.overwriteProperty(getterName, originalGetter => function () { | ||
return doAsserterAsyncAndAddThen(originalGetter, this); | ||
return proxifyIfSupported(doAsserterAsyncAndAddThen(originalGetter, this)); | ||
}); | ||
@@ -281,0 +286,0 @@ } |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me)", | ||
@@ -17,0 +17,0 @@ "license": "WTFPL", |
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
27541
301