Socket
Socket
Sign inDemoInstall

mock-promises

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-promises - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

4

Package.json
{
"name": "mock-promises",
"version": "0.0.2",
"version": "0.0.3",
"author": "Charles Hansen <chansen87@gmail.com>",

@@ -17,3 +17,3 @@ "license": "MIT",

"scripts": {
"preinstall": "npm install -g mocha-server",
"pretest": "npm install -g mocha-server",
"test": "mocha-server spec/javascripts/mocha_examples_test.js -r lib/mock-promises.js spec/javascripts/support/expect.js"

@@ -20,0 +20,0 @@ },

@@ -10,4 +10,13 @@ #Mock Promises

##Installation
#### Self Vendoring
Download [mock-promises.js] and add it to your project. If you are using the jasmine gem, mock-promises.js needs to be in the src_files path in jasmine.yml.
#### NPM
In node, you can use `npm install mock-promises`.
Once the module is installed `require('mock-promises')` in your specs will attach `mockPromises` to the global namespace.
Node does not currently support native promises and you may need to use the [es6 promise polyfill] if you want to run the example specs.
## Q

@@ -123,2 +132,3 @@ #### Setup

[RSVP]:https://github.com/tildeio/rsvp.js/
[es6 promise polyfill]:https://github.com/jakearchibald/es6-promise

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