Skip to content

Commit 4242b3d

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/common/util/FetchRequestSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('FetchRequest', () => {
3333
spyOn(FetchRequest, '_fetchJsonp').and.callFake(() => {});
3434
FetchRequest.put(deleteUri, paramsde, options);
3535
expect(SuperMap.Util.RequestJSONPPromise.issue.calls.count()).toBe(4);
36-
setCORS(defaltCors);
36+
setCORS(true);
3737
});
3838

3939
it('Get_arrayObject', () => {
@@ -91,7 +91,7 @@ describe('FetchRequest', () => {
9191
});
9292
afterAll(() => {
9393
SuperMap.Util.RequestJSONPPromise.limitLength = defaultval;
94-
setCORS(defaltCors);
94+
setCORS(true);
9595
setFetch(window.fetch);
9696
});
9797
});

0 commit comments

Comments
 (0)