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

synchronous-promise

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synchronous-promise - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

0

index.js

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ /*

2

package.json
{
"name": "synchronous-promise",
"version": "1.0.4",
"version": "1.0.5",
"description": "Synchronous Promise-like prototype to use in testing where you would have used an ES6 Promise",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,3 +22,3 @@ # synchronous-promise

const asyncLibraryFake = {
someMethod: sinon.stub().returns('happy value!')
someMethod: sinon.stub().returns(Promise.resolve('happy value!'))
},

@@ -49,3 +49,3 @@ sut = createSystemUnderTestWith(asyncLibraryFake);

const asyncLibraryFake = {
someMethod: sinon.stub().returns('happy value!')
someMethod: sinon.stub().returns(Promise.resolve('happy value!'))
},

@@ -147,2 +147,5 @@ sut = createSystemUnderTestWith(asyncLibraryFake);

(`race()` isn't because I haven't determined a good strategy for that yet -- but it's
unlikely you'll need `race()` from a test).
### Extras

@@ -149,0 +152,0 @@ `SynchronousPromise` also provides two extra functions to make testing a little

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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