File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ describe('CORS support', function() {
43
43
. parse ( 'http://petstore.swagger.io:80/v2/swagger.json' , {
44
44
http : { withCredentials : true }
45
45
} )
46
- . catch ( function ( err ) {
47
- // The request failed, which is expected
48
- expect ( err . message ) . to . contain ( 'Error downloading file' ) ;
49
- } )
50
46
. then ( function ( schema ) {
51
47
// The request succeeded, which means this browser doesn't support CORS.
52
48
expect ( schema ) . to . be . an ( 'object' ) ;
53
49
expect ( schema ) . not . to . be . empty ;
54
50
expect ( parser . schema ) . to . equal ( schema ) ;
55
51
} )
52
+ . catch ( function ( err ) {
53
+ // The request failed, which is expected
54
+ expect ( err . message ) . to . contain ( 'Error downloading file' ) ;
55
+ } )
56
56
. then ( function ( ) {
57
57
// Restore the original error handler
58
58
global . onerror = oldOnError ;
You can’t perform that action at this time.
0 commit comments