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 @@ -8,12 +8,12 @@ describe('FetchRequest', () => {
88 fetch = jasmine . createSpy ( 'fetch' ) . and . resolveTo ( { success : 'ok' } ) ;
99 setFetch ( fetch ) ;
1010 } ) ;
11- it ( 'RequestJSONPPromise' , ( ) => {
11+ xit ( 'RequestJSONPPromise' , ( ) => {
1212 var url = 'http://test.supermap.io/examples/leaflet/editor.html#addressMatchService' ;
1313 var params ;
1414 var options ;
1515 spyOn ( SuperMap . Util . RequestJSONPPromise , 'issue' ) . and . callThrough ( ) ;
16- setCORS ( false ) ;
16+ setCORS ( defaltCors ) ;
1717 FetchRequest . get ( url , params , options ) ;
1818 expect ( SuperMap . Util . RequestJSONPPromise . issue ) . toHaveBeenCalled ( ) ;
1919 var paramsde = {
@@ -91,7 +91,7 @@ describe('FetchRequest', () => {
9191 } ) ;
9292 afterAll ( ( ) => {
9393 SuperMap . Util . RequestJSONPPromise . limitLength = defaultval ;
94- setCORS ( true ) ;
94+ setCORS ( defaltCors ) ;
9595 setFetch ( window . fetch ) ;
9696 } ) ;
9797} ) ;
You can’t perform that action at this time.
0 commit comments