mocha
Advanced tools
Comparing version 1.0.2 to 1.0.3
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 @@ ================== |
@@ -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) |
28
test.js
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
281295
9752
38