Comparing version 1.2.1 to 1.2.2
1.2.2 / 2012-06-28 | ||
================== | ||
* Added 0.8.0 support | ||
1.2.1 / 2012-06-25 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -20,8 +20,2 @@ /*! | ||
/** | ||
* Library version. | ||
*/ | ||
exports.version = '1.2.1'; | ||
/** | ||
* Expose internals. | ||
@@ -28,0 +22,0 @@ */ |
{ | ||
"name": "mocha" | ||
, "version": "1.2.1" | ||
, "version": "1.2.2" | ||
, "description": "simple, flexible, fun test framework" | ||
@@ -5,0 +5,0 @@ , "keywords": ["test", "bdd", "tdd", "tap"] |
20
test.js
describe('something', function(){ | ||
it('should one', function(){ | ||
this.ok = true; | ||
describe('foo', function(){ | ||
before(function(){ | ||
this.foo = 'bar' | ||
}) | ||
it('should two', function(){ | ||
this.ok = false; | ||
beforeEach(function(){ | ||
console.log('beforeEach', this.foo); | ||
}) | ||
it('should work', function(){ | ||
console.log('it', this.foo); | ||
}) | ||
afterEach(function(){ | ||
if (!this.ok) this.test.error(new Error('something went wrong')); | ||
console.log('afterEach', this.foo); | ||
}) | ||
after(function(){ | ||
console.log('after', this.foo); | ||
}) | ||
}) |
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
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
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
315553
10912