mock-promises
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
133
0
14243
7
240
1