Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sinon-stub-promise

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon-stub-promise - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

index.js

@@ -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();
});
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc