Skip to content

Commit d58dea0

Browse files
authored
Update FetchRequestSpec.js
1 parent 4242b3d commit d58dea0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/common/util/FetchRequestSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy