File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ var hasStrictMode = (function () {
9
9
10
10
return ! this ;
11
11
} ( ) ) ;
12
+ var ifHasStrictIt = hasStrictMode ? it : xit ;
12
13
13
14
describe ( 'Array' , function ( ) {
14
15
var testSubject ;
@@ -123,17 +124,15 @@ describe('Array', function () {
123
124
expect ( toStr . call ( listArg ) ) . toBe ( '[object String]' ) ;
124
125
} ) ;
125
126
126
- if ( hasStrictMode ) {
127
- it ( 'does not autobox the content in strict mode' , function ( ) {
128
- var context ;
129
- [ 1 ] . forEach ( function ( ) {
130
- 'use strict' ;
127
+ ifHasStrictIt ( 'does not autobox the content in strict mode' , function ( ) {
128
+ var context ;
129
+ [ 1 ] . forEach ( function ( ) {
130
+ 'use strict' ;
131
131
132
- context = this ;
133
- } , 'x' ) ;
134
- expect ( typeof context ) . toBe ( 'string' ) ;
135
- } ) ;
136
- }
132
+ context = this ;
133
+ } , 'x' ) ;
134
+ expect ( typeof context ) . toBe ( 'string' ) ;
135
+ } ) ;
137
136
} ) ;
138
137
describe ( '#some()' , function ( ) {
139
138
var actual , expected , numberOfRuns ;
You can’t perform that action at this time.
0 commit comments