☕️ Classic, reliable, trusted test framework for Node.js and the browser
fixed more tests
Tj Holowaychuk8f56c7f83c38
diff --git a/test/unit/hook.sync.nested.js b/test/unit/hook.sync.nested.jsindex 264f5aad..db7d4fc6 100644--- a/test/unit/hook.sync.nested.js+++ b/test/unit/hook.sync.nested.js@@ -3,65 +3,59 @@ describe('serial', function(){describe('nested', function(){var calls = [];- beforeEach(function(test){- calls.push('parent before ' + test.title);+ beforeEach(function(){+ calls.push('parent before');})- afterEach(function(test){- calls.push('parent after ' + test.title);+ afterEach(function(){+ calls.push('parent after');});it('foo', function(){- calls.should.eql(['parent before foo']);+ calls.should.eql(['parent before']);+ calls.push('foo');})it('bar', function(){calls.should.eql([- 'parent before foo'- , 'parent after foo'- , 'parent before bar']);+ 'parent before'+ , 'foo'+ , 'parent after'+ , 'parent before']);})-+describe('beforeEach()', function(){- beforeEach(function(test){- calls.push('before ' + test.title);+ beforeEach(function(){+ calls.push('before');})-+it('one', function(){calls.should.eql([- 'parent before foo'- , 'parent after foo'- , 'parent before bar'- , 'parent after bar'- , 'before one']);+ 'parent before'+ , 'foo'+ , 'parent after'+ , 'parent before'+ , 'parent after'+ , 'before']);+ calls.push('one');})-+it('two', function(){calls.should.eql([- 'parent before foo'- , 'parent after foo'- , 'parent before bar'- , 'parent after bar'- , 'before one'- , 'after one'- , 'before two']);+ 'parent before'+ , 'foo'+ , 'parent after'+ , 'parent before'+ , 'parent after'+ , 'before'+ , 'one'+ , 'after'+ , 'before']);+ calls.push('two');});-- it('three', function(){- calls.should.eql([- 'parent before foo'- , 'parent after foo'- , 'parent before bar'- , 'parent after bar'- , 'before one'- , 'after one'- , 'before two'- , 'after two'- , 'before three']);- })-- afterEach(function(test){- calls.push('after ' + test.title);++ afterEach(function(){+ calls.push('after');})})})