@@ -27,7 +27,7 @@ describe('openlayers_MeasureService', () => {
2727 var service = new MeasureService ( url , options ) ;
2828 spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl ) => {
2929 expect ( method ) . toBe ( "GET" ) ;
30- expect ( testUrl ) . toBe ( "http://localhost:8090 /iserver/services/map-world/rest/maps/World/distance" ) ;
30+ expect ( testUrl ) . toBe ( "http://localhost:9876 /iserver/services/map-world/rest/maps/World/distance" ) ;
3131 return Promise . resolve ( new Response ( `{"area":-1,"unit":"METER","distance":1565109.0991230179}` ) ) ;
3232 } ) ;
3333 service . measureDistance ( distanceMeasureParam , ( result ) => {
@@ -56,7 +56,7 @@ describe('openlayers_MeasureService', () => {
5656 var service = new MeasureService ( url , options ) ;
5757 spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl ) => {
5858 expect ( method ) . toBe ( "GET" ) ;
59- expect ( testUrl ) . toBe ( "http://localhost:8090 /iserver/services/map-world/rest/maps/World/distance" ) ;
59+ expect ( testUrl ) . toBe ( "http://localhost:9876 /iserver/services/map-world/rest/maps/World/distance" ) ;
6060 return Promise . resolve ( new Response ( `{"succeed":false,"error":{"code":400,"errorMsg":"参数 point2Ds 不合法,必须至少包含两个二维点"}}` ) ) ;
6161 } ) ;
6262 service . measureDistance ( distanceMeasureParam , ( result ) => {
@@ -83,7 +83,7 @@ describe('openlayers_MeasureService', () => {
8383 var service = new MeasureService ( url , options ) ;
8484 spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl ) => {
8585 expect ( method ) . toBe ( "GET" ) ;
86- expect ( testUrl ) . toBe ( "http://localhost:8090 /iserver/services/map-world/rest/maps/World/area" ) ;
86+ expect ( testUrl ) . toBe ( "http://localhost:9876 /iserver/services/map-world/rest/maps/World/area" ) ;
8787 return Promise . resolve ( new Response ( `{"area":5.586861668611416E12,"unit":"METER","distance":-1}` ) ) ;
8888 } ) ;
8989 service . measureArea ( areaMeasureParam , ( result ) => {
@@ -112,7 +112,7 @@ describe('openlayers_MeasureService', () => {
112112 var service = new MeasureService ( url , options ) ;
113113 spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl ) => {
114114 expect ( method ) . toBe ( "GET" ) ;
115- expect ( testUrl ) . toBe ( "http://localhost:8090 /iserver/services/map-world/rest/maps/World/area" ) ;
115+ expect ( testUrl ) . toBe ( "http://localhost:9876 /iserver/services/map-world/rest/maps/World/area" ) ;
116116 return Promise . resolve ( new Response ( `{"succeed":false,"error":{"code":400,"errorMsg":"传入参数 points 的长度小于3。"}}` ) ) ;
117117 } ) ;
118118 service . measureArea ( areaMeasureParam , ( result ) => {
0 commit comments