Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
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
+1
-1
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