diff options
Diffstat (limited to 'tests/lib/mocha-3.1.0/test/integration/fixtures/cascade.fixture.js')
-rw-r--r-- | tests/lib/mocha-3.1.0/test/integration/fixtures/cascade.fixture.js | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/lib/mocha-3.1.0/test/integration/fixtures/cascade.fixture.js b/tests/lib/mocha-3.1.0/test/integration/fixtures/cascade.fixture.js new file mode 100644 index 0000000000..10b1c37ffd --- /dev/null +++ b/tests/lib/mocha-3.1.0/test/integration/fixtures/cascade.fixture.js @@ -0,0 +1,57 @@ +describe('one', function() { + before(function() { + console.log('before one'); + }); + + after(function() { + console.log('after one'); + }); + + beforeEach(function() { + console.log(' before each one'); + }); + + afterEach(function() { + console.log(' after each one'); + }); + + describe('two', function() { + before(function() { + console.log(' before two'); + }); + + after(function() { + console.log(' after two'); + }); + + beforeEach(function() { + console.log(' before each two'); + }); + + afterEach(function() { + console.log(' after each two'); + }); + + describe('three', function() { + before(function() { + console.log(' before three'); + }); + + after(function() { + console.log(' after three'); + }); + + beforeEach(function() { + console.log(' before each three'); + }); + + afterEach(function() { + console.log(' after each three'); + }); + + it('should three', function() { + console.log(' TEST three'); + }); + }); + }); +}); |