Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

mocha

Package Overview
Dependencies
7
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

6

History.md
1.0.3 / 2012-04-30
==================
* Fixed string diff newlines
* Fixed: removed mocha.css target. Closes #401
1.0.2 / 2012-04-25

@@ -3,0 +9,0 @@ ==================

2

lib/mocha.js

@@ -24,3 +24,3 @@

exports.version = '1.0.2';
exports.version = '1.0.3';

@@ -27,0 +27,0 @@ /**

@@ -325,2 +325,3 @@

return diff['diff' + type](err.actual, err.expected).map(function(str){
if (/^(\n+)$/.test(str.value)) str.value = Array(++RegExp.$1.length).join('<newline>');
if (str.added) return colorLines('diff added', str.value);

@@ -327,0 +328,0 @@ if (str.removed) return colorLines('diff removed', str.value);

{
"name": "mocha"
, "version": "1.0.2"
, "version": "1.0.3"
, "description": "simple, flexible, fun test framework"

@@ -5,0 +5,0 @@ , "keywords": ["test", "bdd", "tdd", "tap"]

@@ -35,1 +35,5 @@ [![Build Status](https://secure.travis-ci.org/visionmedia/mocha.png)](http://travis-ci.org/visionmedia/mocha)

```
## Links
- [Google Group](http://groups.google.com/group/mochajs)
var assert = require('assert')
suite('foo', function(){
test('should bar', function(done){
setTimeout(function(){
assert.equal(1,2 )
done();
}, 100);
})
var a = '\
foo\n\
bar\n\
baz\n\
raz\
'
test('should baz', function(){
var b = '\
foo\n\
bar\n\
baz\n\
\n\
\n\
\n\
raz\
'
describe('foo', function(){
it('should', function(){
b.should.equal(a)
})
})

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 too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc