☕️ Classic, reliable, trusted test framework for Node.js and the browser
less noise
Tj Holowaychuk678383a89b8d
diff --git a/test/unit/hook.async.js b/test/unit/hook.async.jsindex 78cec657..ce62852e 100644--- a/test/unit/hook.async.js+++ b/test/unit/hook.async.js@@ -4,37 +4,37 @@ describe('async', function(){process.on('exit', function(){calls.should.have.length(6);- });+ })beforeEach(function(test, done){// not hitcalls.push('parent before ' + test.title);- });+ })afterEach(function(test, done){// not hitcalls.push('parent after ' + test.title);- });+ })describe('beforeEach()', function(){beforeEach(function(test, done){process.nextTick(function(){calls.push('before ' + test.title);done();- });- });+ })+ })it('one', function(done){calls.should.eql(['before one']);process.nextTick(done);- });+ })it('two', function(){calls.should.eql(['before one', 'after one', 'before two']);- });+ })it('three', function(){calls.should.eql([@@ -43,13 +43,13 @@ describe('async', function(){, 'before two', 'after two', 'before three']);- });+ })afterEach(function(test, done){process.nextTick(function(){calls.push('after ' + test.title);done();- });- });- });-});\ No newline at end of file+ })+ })+ })+})\ No newline at end of filediff --git a/test/unit/hook.serial.js b/test/unit/hook.serial.jsindex 79f5e57e..3216a72f 100644--- a/test/unit/hook.serial.js+++ b/test/unit/hook.serial.js@@ -5,28 +5,28 @@ describe('serial', function(){beforeEach(function(test){// not hitcalls.push('parent before ' + test.title);- });+ })afterEach(function(test){// not hitcalls.push('parent after ' + test.title);- });+ })describe('beforeEach()', function(){beforeEach(function(test){calls.push('before ' + test.title);- });+ })it('one', function(){calls.should.eql(['before one']);- });+ })it('two', function(){calls.should.eql(['before one', 'after one', 'before two']);- });+ })it('three', function(){calls.should.eql([@@ -35,10 +35,10 @@ describe('serial', function(){, 'before two', 'after two', 'before three']);- });+ })afterEach(function(test){calls.push('after ' + test.title);- });- });-});\ No newline at end of file+ })+ })+})\ No newline at end of filediff --git a/test/unit/hook.serial.nested.js b/test/unit/hook.serial.nested.jsindex f4c98cb3..264f5aad 100644--- a/test/unit/hook.serial.nested.js+++ b/test/unit/hook.serial.nested.js@@ -5,7 +5,7 @@ describe('serial', function(){beforeEach(function(test){calls.push('parent before ' + test.title);- });+ })afterEach(function(test){calls.push('parent after ' + test.title);@@ -13,19 +13,19 @@ describe('serial', function(){it('foo', function(){calls.should.eql(['parent before foo']);- });+ })it('bar', function(){calls.should.eql(['parent before foo', 'parent after foo', 'parent before bar']);- });+ })describe('beforeEach()', function(){beforeEach(function(test){calls.push('before ' + test.title);- });+ })it('one', function(){calls.should.eql([@@ -34,7 +34,7 @@ describe('serial', function(){, 'parent before bar', 'parent after bar', 'before one']);- });+ })it('two', function(){calls.should.eql([@@ -58,11 +58,11 @@ describe('serial', function(){, 'before two', 'after two', 'before three']);- });+ })afterEach(function(test){calls.push('after ' + test.title);- });- });- });-});\ No newline at end of file+ })+ })+ })+})\ No newline at end of file