simple-mock
Advanced tools
Comparing version 0.7.3 to 0.8.0
@@ -167,8 +167,8 @@ /* global define */ | ||
newFn.resolveWith = function (value) { | ||
if (simple.Promise.when) return newFn.returnWith(simple.Promise.when(value)) | ||
return newFn.returnWith(simple.Promise.resolve(value)) | ||
if (simple.Promise.when) return newFn.callFn(function createResolvedPromise () { return simple.Promise.when(value) }) | ||
return newFn.callFn(function createResolvedPromise () { return simple.Promise.resolve(value) }) | ||
} | ||
newFn.rejectWith = function (value) { | ||
return newFn.returnWith(simple.Promise.reject(value)) | ||
return newFn.callFn(function createRejectedPromise () { return simple.Promise.reject(value) }) | ||
} | ||
@@ -175,0 +175,0 @@ |
{ | ||
"name": "simple-mock", | ||
"version": "0.7.3", | ||
"version": "0.8.0", | ||
"description": "Super simple stubs and spies with 1-step sandbox restore", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
15529