sinon-stub-promise
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -15,5 +15,3 @@ | ||
// update resolve value for next promise in chain | ||
if (returned) { | ||
this.resolveValue = returned; | ||
} | ||
this.resolveValue = returned; | ||
@@ -20,0 +18,0 @@ return this; |
{ | ||
"name": "sinon-stub-promise", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Synchronous Promise stubbing for Sinon.JS", | ||
@@ -5,0 +5,0 @@ "author": "Alex May <alex@substantial.com>", |
@@ -222,3 +222,14 @@ var sinon = require('sinon'); | ||
}); | ||
it('returns undefined value if intermediate function return undefined', function(done) { | ||
promise.resolves(); | ||
promise().then(function() { | ||
// a statement that doesn't return | ||
}).then(function(value) { | ||
expect(value).to.be.undefined; | ||
done(); | ||
}); | ||
}); | ||
}); | ||
}); |
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
9983
240