Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

more tests

Tj Holowaychuk5c868248833b
diff --git a/test/unit/beforeEach.serial.js b/test/unit/beforeEach.serial.js
index 8d616a08..79f5e57e 100644
--- a/test/unit/beforeEach.serial.js
+++ b/test/unit/beforeEach.serial.js
@@ -1,8 +1,18 @@
describe('serial', function(){
- describe('beforeEach()', function(){
- var calls = [];
+ var calls = [];
+
+ beforeEach(function(test){
+ // not hit
+ calls.push('parent before ' + test.title);
+ });
+ afterEach(function(test){
+ // not hit
+ calls.push('parent after ' + test.title);
+ });
+
+ describe('beforeEach()', function(){
beforeEach(function(test){
calls.push('before ' + test.title);
});