Skip to content

Commit

Permalink
【fix】UT
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Feb 20, 2024
1 parent 3bfd639 commit f04fb12
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/common/iServer/GetFeaturesByBoundsServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('GetFeaturesByBoundsService', () => {
try {
getFeaturesByBoundsService.destroy();
boundsParams.destroy();
expect(serviceSucceedEventArgsSystem.result.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.features.length).toBe(4);
done();
} catch (exception) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/iServer/GetFeaturesByBufferServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ describe('GetFeaturesByBufferService', () => {
try {
getFeaturesByBufferService.destroy();
getFeaturesByBufferParameters.destroy();
expect(serviceSucceedEventArgsSystem.result.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.features.length).toBe(4);
done();
} catch (exception) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/iServer/GetFeaturesByGeometryServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ describe('GetFeaturesByGeometryService', () => {
try {
getFeaturesByGeometryService.destroy();
getFeaturesByGeometryParameters.destroy();
expect(serviceSucceedEventArgsSystem.result.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.features.length).toBe(4);
done();
} catch (exception) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/iServer/GetFeaturesByIDsServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ describe('GetFeaturesByIDsService', () => {
try {
getFeaturesByIDsService.destroy();
idParams.destroy();
expect(serviceSucceedEventArgsSystem.result.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.features.length).toBe(4);
done();
} catch (exception) {
Expand Down
2 changes: 1 addition & 1 deletion test/common/iServer/GetFeaturesBySQLServiceSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('GetFeaturesBySQLService', () => {
try {
getFeaturesBySQLService.destroy();
sqlParams.destroy();
expect(serviceSucceedEventArgsSystem.result.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.type).toBe('FeatureCollection');
expect(serviceSucceedEventArgsSystem.result.features.features.length).toBe(4);
done();
} catch (exception) {
Expand Down

0 comments on commit f04fb12

Please sign in to comment.