New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple-mock

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-mock - npm Package Compare versions

Comparing version

to
0.7.1

10

index.js

@@ -186,2 +186,12 @@ /* global define */

}
newFn.withLoop = function () {
newFn.loop = true
return newFn // Chainable
}
newFn.noLoop = function () {
newFn.loop = false
return newFn // Chainable
}
return newFn

@@ -188,0 +198,0 @@ }

2

package.json
{
"name": "simple-mock",
"version": "0.7.0",
"version": "0.7.1",
"description": "Super simple stubs and spies with 1-step sandbox restore",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -159,3 +159,3 @@ # simple-mock

### spy.reset()
### spy.restore()

@@ -211,4 +211,8 @@ Resets all counts and properties to the original state.

### stub.withLoop() & stub.noLoop()
Configures the stub to enable/disable [looping](#stubloop).
## Why
The most complete, framework-agnostic mocking library is [sinon.js](http://sinonjs.org/). It also has pages of documentation and lots of sugar-coating that we generally don't need. Keep it simple!