File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,20 @@ describe('GetGridCellInfosService', () => {
7373 } ) ;
7474 var queryCompleted = event => {
7575 eventCompleted = event ;
76+ try {
77+ expect ( myService . url ) . toEqual (
78+ dataServiceURL + '/datasources/World/datasets/LandCover/gridValue?x=110&y=50'
79+ ) ;
80+ myService . destroy ( ) ;
81+ queryParam . destroy ( ) ;
82+ done ( ) ;
83+ } catch ( exception ) {
84+ expect ( false ) . toBeTruthy ( ) ;
85+ console . log ( 'GetGridCellInfosService_' + exception . name + ':' + exception . message ) ;
86+ myService . destroy ( ) ;
87+ queryParam . destroy ( ) ;
88+ done ( ) ;
89+ }
7690 } ;
7791 var queryError = event => {
7892 eventFailed = event ;
@@ -97,23 +111,6 @@ describe('GetGridCellInfosService', () => {
97111 return null ;
98112 } ) ;
99113 myService . processAsync ( queryParam ) ;
100-
101- setTimeout ( ( ) => {
102- try {
103- expect ( myService . url ) . toEqual (
104- dataServiceURL + '/datasources/World/datasets/LandCover/gridValue?x=110&y=50'
105- ) ;
106- myService . destroy ( ) ;
107- queryParam . destroy ( ) ;
108- done ( ) ;
109- } catch ( exception ) {
110- expect ( false ) . toBeTruthy ( ) ;
111- console . log ( 'GetGridCellInfosService_' + exception . name + ':' + exception . message ) ;
112- myService . destroy ( ) ;
113- queryParam . destroy ( ) ;
114- done ( ) ;
115- }
116- } , 0 ) ;
117114 } ) ;
118115
119116 it ( 'fail:processAsync' , done => {
You can’t perform that action at this time.
0 commit comments