@@ -26,11 +26,11 @@ describe('angular.scenario.Describe', function() {
26
26
} ) ;
27
27
28
28
it ( 'should handle basic nested case' , function ( ) {
29
- root . describe ( 'A' , function ( ) {
29
+ root . describe ( 'A' , /** @this **/ function ( ) {
30
30
this . beforeEach ( log . fn ( '{' ) ) ;
31
31
this . afterEach ( log . fn ( '}' ) ) ;
32
32
this . it ( '1' , log . fn ( '1' ) ) ;
33
- this . describe ( 'B' , function ( ) {
33
+ this . describe ( 'B' , /** @this **/ function ( ) {
34
34
this . beforeEach ( log . fn ( '(' ) ) ;
35
35
this . afterEach ( log . fn ( ')' ) ) ;
36
36
this . it ( '2' , log . fn ( '2' ) ) ;
@@ -54,11 +54,11 @@ describe('angular.scenario.Describe', function() {
54
54
} ) ;
55
55
56
56
it ( 'should link nested describe blocks with parent and children' , function ( ) {
57
- root . describe ( 'A' , function ( ) {
57
+ root . describe ( 'A' , /** @this **/ function ( ) {
58
58
this . it ( '1' , angular . noop ) ;
59
- this . describe ( 'B' , function ( ) {
59
+ this . describe ( 'B' , /** @this **/ function ( ) {
60
60
this . it ( '2' , angular . noop ) ;
61
- this . describe ( 'C' , function ( ) {
61
+ this . describe ( 'C' , /** @this **/ function ( ) {
62
62
this . it ( '3' , angular . noop ) ;
63
63
} ) ;
64
64
} ) ;
@@ -69,11 +69,11 @@ describe('angular.scenario.Describe', function() {
69
69
} ) ;
70
70
71
71
it ( 'should not process xit and xdescribe' , function ( ) {
72
- root . describe ( 'A' , function ( ) {
72
+ root . describe ( 'A' , /** @this **/ function ( ) {
73
73
this . xit ( '1' , angular . noop ) ;
74
- this . xdescribe ( 'B' , function ( ) {
74
+ this . xdescribe ( 'B' , /** @this **/ function ( ) {
75
75
this . it ( '2' , angular . noop ) ;
76
- this . describe ( 'C' , function ( ) {
76
+ this . describe ( 'C' , /** @this **/ function ( ) {
77
77
this . it ( '3' , angular . noop ) ;
78
78
} ) ;
79
79
} ) ;
@@ -82,15 +82,16 @@ describe('angular.scenario.Describe', function() {
82
82
expect ( specs . length ) . toEqual ( 0 ) ;
83
83
} ) ;
84
84
85
+
85
86
it ( 'should only return iit and ddescribe if present' , function ( ) {
86
- root . describe ( 'A' , function ( ) {
87
+ root . describe ( 'A' , /** @this **/ function ( ) {
87
88
this . it ( '1' , angular . noop ) ;
88
89
this . iit ( '2' , angular . noop ) ;
89
- this . describe ( 'B' , function ( ) {
90
+ this . describe ( 'B' , /** @this **/ function ( ) {
90
91
this . it ( '3' , angular . noop ) ;
91
- this . ddescribe ( 'C' , function ( ) {
92
+ this . ddescribe ( 'C' , /** @this **/ function ( ) {
92
93
this . it ( '4' , angular . noop ) ;
93
- this . describe ( 'D' , function ( ) {
94
+ this . describe ( 'D' , /** @this **/ function ( ) {
94
95
this . it ( '5' , angular . noop ) ;
95
96
} ) ;
96
97
} ) ;
0 commit comments