@@ -17,12 +17,10 @@ describe('describe hooks', () => {
1717'before describe hooks' ,
1818'beforeEach 1' , '1' , 'afterEach 1' ,
1919'beforeEach 2' , '2' , 'afterEach 2' ,
20- 'beforeEach nested' ,
2120'before nested' ,
22- 'beforeEach nested 1' , 'nested 1' , 'afterEach nested 1' ,
23- 'beforeEach nested 2' , 'nested 2' , 'afterEach nested 2' ,
21+ 'beforeEach nested 1' , '+beforeEach nested 1' , 'nested 1' , 'afterEach nested 1' , '+ afterEach nested 1',
22+ 'beforeEach nested 2' , '+beforeEach nested 2' , 'nested 2' , 'afterEach nested 2' , '+ afterEach nested 2',
2423'after nested' ,
25- 'afterEach nested' ,
2624'after describe hooks' ,
2725] ) ;
2826} ) ;
@@ -44,10 +42,10 @@ describe('describe hooks', () => {
4442testArr . push ( 'after ' + this . name ) ;
4543} ) ;
4644beforeEach ( function ( ) {
47- testArr . push ( 'beforeEach ' + this . name ) ;
45+ testArr . push ( '+ beforeEach ' + this . name ) ;
4846} ) ;
4947afterEach ( function ( ) {
50- testArr . push ( 'afterEach ' + this . name ) ;
48+ testArr . push ( '+ afterEach ' + this . name ) ;
5149} ) ;
5250it ( 'nested 1' , ( ) => testArr . push ( 'nested 1' ) ) ;
5351test ( 'nested 2' , ( ) => testArr . push ( 'nested 2' ) ) ;
@@ -111,8 +109,8 @@ test('test hooks', async (t) => {
111109'beforeEach 1' , 'before test hooks' , '1' , 'afterEach 1' ,
112110'beforeEach 2' , '2' , 'afterEach 2' ,
113111'beforeEach nested' ,
114- 'nested beforeEach nested 1' , 'nested1' , 'nested afterEach nested 1' ,
115- 'nested beforeEach nested 2' , 'nested 2' , 'nested afterEach nested 2' ,
112+ 'beforeEach nested 1' , 'nested beforeEach nested 1', 'nested1' , 'afterEach nested 1 ', 'nested afterEach nested 1' ,
113+ 'beforeEach nested 2' , 'nested beforeEach nested 2', 'nested 2' , 'afterEach nested 2', 'nested afterEach nested 2' ,
116114'afterEach nested' ,
117115] ) ;
118116} ) ;
0 commit comments