File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ describe('Offline', () => {
116
116
117
117
offLine . inject ( '/index' , res => {
118
118
expect ( res . headers [ 'content-type' ] ) . to . contains ( 'text/html' ) ;
119
- expect ( res . statusCode ) . to . eq ( '200' ) ;
119
+ expect ( res . statusCode ) . to . satisfy ( status => status === 200 || status === '200' ) ;
120
120
done ( ) ;
121
121
} ) ;
122
122
} ) ;
@@ -142,7 +142,7 @@ describe('Offline', () => {
142
142
143
143
offLine . inject ( '/index' , res => {
144
144
expect ( res . headers [ 'content-type' ] ) . to . contains ( 'text/html' ) ;
145
- expect ( res . statusCode ) . to . eq ( '500' ) ;
145
+ expect ( res . statusCode ) . to . satisfy ( status => status === 500 || status === '500' ) ;
146
146
done ( ) ;
147
147
} ) ;
148
148
} ) ;
@@ -167,7 +167,7 @@ describe('Offline', () => {
167
167
168
168
offLine . inject ( '/index' , res => {
169
169
expect ( res . headers [ 'content-type' ] ) . to . contains ( 'text/html' ) ;
170
- expect ( res . statusCode ) . to . eq ( '401' ) ;
170
+ expect ( res . statusCode ) . to . satisfy ( status => status === 401 || status === '401' ) ;
171
171
done ( ) ;
172
172
} ) ;
173
173
} ) ;
You can’t perform that action at this time.
0 commit comments