-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: cascade beforeEach / afterEach. Closes #30
- Loading branch information
Showing
2 changed files
with
136 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
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'); | ||
}) | ||
}) | ||
}) | ||
}) |