From f04fb1261708d7a951973591a61b486a63d61ba2 Mon Sep 17 00:00:00 2001 From: songyumeng Date: Tue, 20 Feb 2024 15:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=E3=80=91UT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/common/iServer/GetFeaturesByBoundsServiceSpec.js | 2 +- test/common/iServer/GetFeaturesByBufferServiceSpec.js | 2 +- test/common/iServer/GetFeaturesByGeometryServiceSpec.js | 2 +- test/common/iServer/GetFeaturesByIDsServiceSpec.js | 2 +- test/common/iServer/GetFeaturesBySQLServiceSpec.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/common/iServer/GetFeaturesByBoundsServiceSpec.js b/test/common/iServer/GetFeaturesByBoundsServiceSpec.js index c37d953be..c7edd408e 100644 --- a/test/common/iServer/GetFeaturesByBoundsServiceSpec.js +++ b/test/common/iServer/GetFeaturesByBoundsServiceSpec.js @@ -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) { diff --git a/test/common/iServer/GetFeaturesByBufferServiceSpec.js b/test/common/iServer/GetFeaturesByBufferServiceSpec.js index d942abcd2..14ff437c2 100644 --- a/test/common/iServer/GetFeaturesByBufferServiceSpec.js +++ b/test/common/iServer/GetFeaturesByBufferServiceSpec.js @@ -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) { diff --git a/test/common/iServer/GetFeaturesByGeometryServiceSpec.js b/test/common/iServer/GetFeaturesByGeometryServiceSpec.js index d990ea6f1..011a9f4c3 100644 --- a/test/common/iServer/GetFeaturesByGeometryServiceSpec.js +++ b/test/common/iServer/GetFeaturesByGeometryServiceSpec.js @@ -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) { diff --git a/test/common/iServer/GetFeaturesByIDsServiceSpec.js b/test/common/iServer/GetFeaturesByIDsServiceSpec.js index 0ea63e066..3c7e66928 100644 --- a/test/common/iServer/GetFeaturesByIDsServiceSpec.js +++ b/test/common/iServer/GetFeaturesByIDsServiceSpec.js @@ -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) { diff --git a/test/common/iServer/GetFeaturesBySQLServiceSpec.js b/test/common/iServer/GetFeaturesBySQLServiceSpec.js index d665322d0..070e5dc57 100644 --- a/test/common/iServer/GetFeaturesBySQLServiceSpec.js +++ b/test/common/iServer/GetFeaturesBySQLServiceSpec.js @@ -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) {