Skip to content

Commit 842fbd4

Browse files
committed
【fix】优化测试 review by luoxiao
1 parent dbabf67 commit 842fbd4

31 files changed

+280
-274
lines changed
2.98 KB
Loading

test/classic/services/AddressMatchServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('classic_AddressMatchService', () => {
1818
var addressMatchService = new AddressMatchService(addressMatchURL);
1919
expect(addressMatchService).not.toBeNull();
2020
expect(addressMatchService.url).toEqual(addressMatchURL);
21-
expect(addressMatchService.isInTheSameDomain).toBeFalsy();
21+
expect(addressMatchService.isInTheSameDomain).toBeTruthy();
2222
addressMatchService.destroy();
2323
expect(addressMatchService.EVENT_TYPES).toBeNull();
2424
expect(addressMatchService.events).toBeNull();

test/classic/services/DatasetServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('classic_DatasetService', () => {
8888
expect(service).not.toBeNull();
8989
expect(serviceResult).not.toBeNull();
9090
expect(serviceResult.type).toBe("processFailed");
91-
expect(serviceResult.object.isInTheSameDomain).toBeFalsy();
91+
expect(serviceResult.object.isInTheSameDomain).toBeTruthy();
9292
expect(serviceResult.dataset).not.toBeNull();
9393
expect(serviceResult.datasource).not.toBeNull();
9494
expect(serviceResult.error.code).toEqual(404);

test/classic/services/DatasourceServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('classic_DatasourceService', () => {
8888
expect(service).not.toBeNull();
8989
expect(serviceResult).not.toBeNull();
9090
expect(serviceResult.type).toBe("processFailed");
91-
expect(serviceResult.object.isInTheSameDomain).toBeFalsy();
91+
expect(serviceResult.object.isInTheSameDomain).toBeTruthy();
9292
expect(serviceResult.error.code).toEqual(404);
9393
expect(serviceResult.error.errorMsg).toBe("数据源World1不存在,获取相应的数据服务组件失败");
9494
done();

test/common/iServer/AddressMatchServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('AddressMatchService', () => {
1919
var addressMatchService = new AddressMatchService(addressMatchURL_code);
2020
expect(addressMatchService).not.toBeNull();
2121
expect(addressMatchService.url).toEqual(addressMatchURL_code);
22-
expect(addressMatchService.isInTheSameDomain).toBeFalsy();
22+
expect(addressMatchService.isInTheSameDomain).toBeTruthy();
2323
addressMatchService.destroy();
2424
expect(addressMatchService.EVENT_TYPES).toBeNull();
2525
expect(addressMatchService.events).toBeNull();

test/common/iServer/EditFeaturesServiceSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('EditFeaturesService', () => {
2828
try {
2929
var serviceResult = addFeatureSuccessEventArgsSystem.result;
3030
expect(addFeatureService).not.toBeNull();
31-
expect(addFeatureService.isInTheSameDomain).toBeFalsy();
31+
expect(addFeatureService.isInTheSameDomain).toBeTruthy();
3232
expect(addFeatureService.isUseBatch).toBeFalsy();
3333
expect(addFeatureService.returnContent).toBeTruthy();
3434
expect(addFeatureService.options.method).toBe("POST");
@@ -97,7 +97,7 @@ describe('EditFeaturesService', () => {
9797
var updateFeaturesCompleted = (updateSuccessEventArgsSystem) => {
9898
try {
9999
expect(updateFeaturesService).not.toBeNull();
100-
expect(updateFeaturesService.isInTheSameDomain).toBeFalsy();
100+
expect(updateFeaturesService.isInTheSameDomain).toBeTruthy();
101101
expect(updateFailedEventArgsSystem).toBeNull();
102102
expect(updateSuccessEventArgsSystem.type).toBe("processCompleted");
103103
expect(updateSuccessEventArgsSystem.object.options.method).toBe("PUT");

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