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

gulp-mocha-co

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-mocha-co - npm Package Compare versions

Comparing version 0.4.1-co.2 to 0.4.1-co.3

2

package.json
{
"name": "gulp-mocha-co",
"version": "0.4.1-co.2",
"version": "0.4.1-co.3",
"description": "Run Mocha tests with co generators",

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

@@ -53,3 +53,3 @@ ## Information

beforeEach(function(){
beforeEach(function*(){
var returnedThing = yield whatever.returnWhatever()

@@ -65,4 +65,18 @@ });

```
## Alternative
Btw, you can just keep using gulp-mocha and good ol mocha and add this code to your tests:
```
var co = require('co');
// ....
it('should work', function(done){
co(function *(){
yield whatever;
})(done)
})
````
See [this issue](https://github.com/visionmedia/mocha/issues/1032)
## API

@@ -69,0 +83,0 @@

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