Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mocha

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha - npm Package Compare versions

Comparing version 1.7.4 to 1.8.0

component.json

129

History.md
1.7.4 / 2012-12-06
1.8.0 / 2013-01-08
==================
* add Mocha() options bail support
* add `Mocha#bail()` method
* add instanceof check back for inheriting from Error
* add component.json
* add diff.js to browser build
* update growl
* fix TAP reporter failures comment :D
1.7.4 / 2012-12-06
==================
* add total number of passes and failures to TAP

@@ -9,3 +20,3 @@ * remove .bind() calls. re #680

1.7.3 / 2012-11-30
1.7.3 / 2012-11-30
==================

@@ -16,8 +27,8 @@

1.7.2 / 2012-11-28
1.7.2 / 2012-11-28
==================
* fix uncaught errors to expose the original error message
* fix uncaught errors to expose the original error message
1.7.0 / 2012-11-07
1.7.0 / 2012-11-07
==================

@@ -37,3 +48,3 @@

1.6.0 / 2012-10-02
1.6.0 / 2012-10-02
==================

@@ -45,3 +56,3 @@

1.5.0 / 2012-09-21
1.5.0 / 2012-09-21
==================

@@ -60,3 +71,3 @@

1.4.2 / 2012-09-01
1.4.2 / 2012-09-01
==================

@@ -73,3 +84,3 @@

1.4.1 / 2012-08-28
1.4.1 / 2012-08-28
==================

@@ -81,3 +92,3 @@

1.4.0 / 2012-08-22
1.4.0 / 2012-08-22
==================

@@ -92,3 +103,3 @@

1.3.2 / 2012-08-01
1.3.2 / 2012-08-01
==================

@@ -98,3 +109,3 @@

1.3.1 / 2012-08-01
1.3.1 / 2012-08-01
==================

@@ -115,3 +126,3 @@

1.3.0 / 2012-07-05
1.3.0 / 2012-07-05
==================

@@ -128,3 +139,3 @@

1.2.2 / 2012-06-28
1.2.2 / 2012-06-28
==================

@@ -134,3 +145,3 @@

1.2.1 / 2012-06-25
1.2.1 / 2012-06-25
==================

@@ -146,3 +157,3 @@

1.2.0 / 2012-06-17
1.2.0 / 2012-06-17
==================

@@ -157,3 +168,3 @@

1.1.0 / 2012-05-30
1.1.0 / 2012-05-30
==================

@@ -172,3 +183,3 @@

1.0.3 / 2012-04-30
1.0.3 / 2012-04-30
==================

@@ -179,3 +190,3 @@

1.0.2 / 2012-04-25
1.0.2 / 2012-04-25
==================

@@ -191,3 +202,3 @@

1.0.1 / 2012-04-04
1.0.1 / 2012-04-04
==================

@@ -199,3 +210,3 @@

1.0.0 / 2012-03-24
1.0.0 / 2012-03-24
==================

@@ -215,3 +226,3 @@

0.14.1 / 2012-03-06
0.14.1 / 2012-03-06
==================

@@ -225,3 +236,3 @@

0.14.0 / 2012-03-01
0.14.0 / 2012-03-01
==================

@@ -231,3 +242,3 @@

0.13.0 / 2012-02-23
0.13.0 / 2012-02-23
==================

@@ -239,7 +250,7 @@

* Added `xdescribe()` and `xit()` to the BDD interface. Closes #263 (docs * Changed: make json reporter output pretty json
* Fixed node-inspector support, swapped `--debug` for `debug` to match node.
* Fixed node-inspector support, swapped `--debug` for `debug` to match node.
needed)
Closes #247
0.12.1 / 2012-02-14
0.12.1 / 2012-02-14
==================

@@ -251,3 +262,3 @@

0.12.0 / 2012-02-02
0.12.0 / 2012-02-02
==================

@@ -261,3 +272,3 @@

0.10.2 / 2012-01-21
0.10.2 / 2012-01-21
==================

@@ -269,3 +280,3 @@

0.10.1 / 2012-01-17
0.10.1 / 2012-01-17
==================

@@ -278,3 +289,3 @@

0.10.0 / 2012-01-13
0.10.0 / 2012-01-13
==================

@@ -290,3 +301,3 @@

0.8.2 / 2012-01-05
0.8.2 / 2012-01-05
==================

@@ -298,3 +309,3 @@

0.8.1 / 2011-12-30
0.8.1 / 2011-12-30
==================

@@ -306,3 +317,3 @@

0.8.0 / 2011-12-28
0.8.0 / 2011-12-28
==================

@@ -318,3 +329,3 @@

0.7.1 / 2011-12-22
0.7.1 / 2011-12-22
==================

@@ -328,3 +339,3 @@

0.7.0 / 2011-12-18
0.7.0 / 2011-12-18
==================

@@ -335,3 +346,3 @@

0.6.0 / 2011-12-18
0.6.0 / 2011-12-18
==================

@@ -345,3 +356,3 @@

0.5.0 / 2011-12-14
0.5.0 / 2011-12-14
==================

@@ -354,3 +365,3 @@

0.4.0 / 2011-12-14
0.4.0 / 2011-12-14
==================

@@ -365,3 +376,3 @@

0.3.6 / 2011-12-09
0.3.6 / 2011-12-09
==================

@@ -371,3 +382,3 @@

0.3.5 / 2011-12-08
0.3.5 / 2011-12-08
==================

@@ -380,3 +391,3 @@

0.3.4 / 2011-12-08
0.3.4 / 2011-12-08
==================

@@ -389,3 +400,3 @@

0.3.3 / 2011-12-08
0.3.3 / 2011-12-08
==================

@@ -396,3 +407,3 @@

0.3.2 / 2011-12-05
0.3.2 / 2011-12-05
==================

@@ -402,3 +413,3 @@

0.3.1 / 2011-12-04
0.3.1 / 2011-12-04
==================

@@ -409,3 +420,3 @@

0.3.0 / 2011-12-04
0.3.0 / 2011-12-04
==================

@@ -420,3 +431,3 @@

0.2.0 / 2011-11-30
0.2.0 / 2011-11-30
==================

@@ -429,3 +440,3 @@

0.1.0 / 2011-11-29
0.1.0 / 2011-11-29
==================

@@ -437,3 +448,3 @@

0.0.8 / 2011-11-25
0.0.8 / 2011-11-25
==================

@@ -443,3 +454,3 @@

0.0.7 / 2011-11-25
0.0.7 / 2011-11-25
==================

@@ -454,3 +465,3 @@

0.0.6 / 2011-11-25
0.0.6 / 2011-11-25
==================

@@ -460,3 +471,3 @@

0.0.5 / 2011-11-24
0.0.5 / 2011-11-24
==================

@@ -466,3 +477,3 @@

0.0.4 / 2011-11-24
0.0.4 / 2011-11-24
==================

@@ -475,3 +486,3 @@

0.0.3 / 2011-11-23
0.0.3 / 2011-11-23
==================

@@ -482,3 +493,3 @@

0.0.2 / 2011-11-22
0.0.2 / 2011-11-22
==================

@@ -491,3 +502,3 @@

0.0.1 / 2011-11-22
0.0.1 / 2011-11-22
==================

@@ -498,3 +509,3 @@

0.0.1-alpha6 / 2011-11-19
0.0.1-alpha6 / 2011-11-19
==================

@@ -512,3 +523,3 @@

0.0.1-alpha5 / 2011-11-17
0.0.1-alpha5 / 2011-11-17
==================

@@ -535,3 +546,3 @@

0.0.1-alpha1 / 2011-11-08
0.0.1-alpha1 / 2011-11-08
==================

@@ -541,5 +552,5 @@

0.0.1-alpha1 / 2011-11-08
0.0.1-alpha1 / 2011-11-08
==================
* Initial release

@@ -55,2 +55,3 @@ /*!

* - `timeout` timeout in milliseconds
* - `bail` bail on the first test failure
* - `slow` milliseconds to wait before considering a test slow

@@ -71,2 +72,3 @@ * - `ignoreLeaks` ignore global leaks

this.ui(options.ui);
this.bail(options.bail);
this.reporter(options.reporter);

@@ -78,2 +80,15 @@ if (options.timeout) this.timeout(options.timeout);

/**
* Enable or disable bailing on the first failure.
*
* @param {Boolean} [bail]
* @api public
*/
Mocha.prototype.bail = function(bail){
if (null == bail) bail = true;
this.suite.bail(bail);
return this;
};
/**
* Add test `file`.

@@ -93,3 +108,3 @@ *

*
* @param {String|Function} reporter name of a reporter or a reporter constructor
* @param {String|Function} reporter name or constructor
* @api public

@@ -96,0 +111,0 @@ */

@@ -168,3 +168,3 @@

pre.style.display = 'none' == pre.style.display
? 'inline-block'
? 'block'
: 'none';

@@ -171,0 +171,0 @@ });

@@ -26,3 +26,2 @@ /**

, stats = this.stats
, total = runner.total
, level = 0

@@ -29,0 +28,0 @@ , buf = '';

@@ -30,3 +30,3 @@

, passes = 0
, failures = 1;
, failures = 0;

@@ -54,3 +54,3 @@ runner.on('start', function(){

console.log('not ok %d %s', n, title(test));
console.log(err.stack.replace(/^/gm, ' '));
if (err.stack) console.log(err.stack.replace(/^/gm, ' '));
});

@@ -57,0 +57,0 @@

@@ -197,3 +197,3 @@

this.fn.call(ctx, function(err){
if (toString.call(err) === "[object Error]") return done(err);
if (err instanceof Error || toString.call(err) === "[object Error]") return done(err);
if (null != err) return done(new Error('done() invoked with non-Error: ' + err));

@@ -200,0 +200,0 @@ done();

{
"name": "mocha"
, "version": "1.7.4"
, "description": "simple, flexible, fun test framework"
, "keywords": ["test", "bdd", "tdd", "tap"]
, "author": "TJ Holowaychuk <tj@vision-media.ca>"
, "repository": { "type": "git", "url": "git://github.com/visionmedia/mocha.git" }
, "main": "./index"
, "bin": { "mocha": "./bin/mocha", "_mocha": "./bin/_mocha" }
, "engines": { "node": ">= 0.4.x" }
, "scripts": {
"name": "mocha",
"version": "1.8.0",
"description": "simple, flexible, fun test framework",
"keywords": [
"mocha",
"test",
"bdd",
"tdd",
"tap"
],
"author": "TJ Holowaychuk <tj@vision-media.ca>",
"repository": {
"type": "git",
"url": "git://github.com/visionmedia/mocha.git"
},
"main": "./index",
"bin": {
"mocha": "./bin/mocha",
"_mocha": "./bin/_mocha"
},
"engines": {
"node": ">= 0.4.x"
},
"scripts": {
"test": "make test-all"
},
"dependencies": {
"commander": "0.6.1",
"growl": "1.7.x",
"jade": "0.26.3",
"diff": "1.0.2",
"debug": "*",
"mkdirp": "0.3.3",
"ms": "0.3.0"
},
"devDependencies": {
"should": "*",
"coffee-script": "1.2"
}
, "dependencies":{
"commander": "0.6.1"
, "growl": "1.6.x"
, "jade": "0.26.3"
, "diff": "1.0.2"
, "debug": "*"
, "mkdirp": "0.3.3"
, "ms": "0.3.0"
}
, "devDependencies": {
"should": "*"
, "coffee-script": "1.2"
}
}

@@ -1,38 +0,7 @@

//
// describe('something', function(){
// it('should work', function(){
// 'foo bar'.should.equal('bar');
// })
// })
//
// describe('something', function(){
// it('should work', function(){
// 'foo\nbar\nbaz\nraz\r\n jaz\nsomething\nelse'.should.equal('foo\nbar\nbaz\nraz\r\njaz\nsmething\nelse');
// })
// })
describe('something', function(){
beforeEach(function(){
foo
it('should fail', function(done){
// done(5);
done()
})
describe('nesting', function(){
describe('stuff', function(){
it('should foo', function(){
})
it('should bar', function(){
})
})
})
it('should foo', function(){
})
it('should bar', function(){
})
})
})

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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