You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/__snapshots__/index.test.ts.snap
+57-57Lines changed: 57 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
-
exports[`basic autocomplete g-a-g response 1`] =`
3
+
exports[`geocoder-arcgis-geojson autocomplete should make basic autocomplete query: basic autocomplete g-a-g response 1`] =`
4
4
Object {
5
5
"features": Array [
6
6
Object {
@@ -60,9 +60,43 @@ Object {
60
60
}
61
61
`;
62
62
63
-
exports[`basic autocomplete request uri 1`] =`"/arcgis/rest/services/World/GeocodeServer/suggest?text=123%20main%20st&outFields=*&maxSuggestions=10&f=json"`;
63
+
exports[`geocoder-arcgis-geojson autocomplete should make basic autocomplete query: basic autocomplete request uri 1`] =`"/arcgis/rest/services/World/GeocodeServer/suggest?text=123%20main%20st&outFields=*&maxSuggestions=10&f=json"`;
64
64
65
-
exports[`basic bulk g-a-g response 1`] =`
65
+
exports[`geocoder-arcgis-geojson bulk should handle bulk query resulting in no address found: bulk g-a-g response with no address found 1`] =`
66
+
Object {
67
+
"features": Array [
68
+
Object {
69
+
"geometry": Object {
70
+
"coordinates": Array [
71
+
0,
72
+
0,
73
+
],
74
+
"type": "Point",
75
+
},
76
+
"properties": Object {
77
+
"confidence": 0,
78
+
"country": "",
79
+
"country_a": "",
80
+
"county": "",
81
+
"label": "Address not found",
82
+
"locality": "",
83
+
"name": "",
84
+
"neighbourhood": "",
85
+
"region": "",
86
+
"resultId": 0,
87
+
},
88
+
"type": "Feature",
89
+
},
90
+
],
91
+
"query": Object {
92
+
"addresses": Array [
93
+
"aefgjil",
94
+
],
95
+
},
96
+
}
97
+
`;
98
+
99
+
exports[`geocoder-arcgis-geojson bulk should make basic bulk query: basic bulk g-a-g response 1`] =`
66
100
Object {
67
101
"features": Array [
68
102
Object {
@@ -71,7 +105,7 @@ Object {
71
105
-68.28902999999997,
72
106
44.29358000000008,
73
107
],
74
-
"type": "point",
108
+
"type": "Point",
75
109
},
76
110
"properties": Object {
77
111
"confidence": 1,
@@ -85,7 +119,7 @@ Object {
85
119
"region": "Maine",
86
120
"resultId": 0,
87
121
},
88
-
"type": "feature",
122
+
"type": "Feature",
89
123
},
90
124
],
91
125
"query": Object {
@@ -96,7 +130,7 @@ Object {
96
130
}
97
131
`;
98
132
99
-
exports[`basic reverse g-a-g response 1`] =`
133
+
exports[`geocoder-arcgis-geojson reverse should make basic reverse query: basic reverse g-a-g response 1`] =`
100
134
Object {
101
135
"features": Array [
102
136
Object {
@@ -105,7 +139,7 @@ Object {
105
139
-122.00718855545652,
106
140
37.060855792976916,
107
141
],
108
-
"type": "point",
142
+
"type": "Point",
109
143
},
110
144
"properties": Object {
111
145
"country_a": "USA",
@@ -116,19 +150,19 @@ Object {
116
150
"neighbourhood": "",
117
151
"region": "California",
118
152
},
119
-
"type": "feature",
153
+
"type": "Feature",
120
154
},
121
155
],
122
156
"query": Object {
123
-
"lat": 37.06146,
124
-
"lon": -122.006443,
157
+
"x": -122.006443,
158
+
"y": 37.06146,
125
159
},
126
160
}
127
161
`;
128
162
129
-
exports[`basic reverse request uri 1`] =`"/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=-122.006443%2C37.06146&maxLocations=10&f=json"`;
163
+
exports[`geocoder-arcgis-geojson reverse should make basic reverse query: basic reverse request uri 1`] =`"/arcgis/rest/services/World/GeocodeServer/reverseGeocode?location=-122.006443%2C37.06146&maxLocations=10&f=json"`;
130
164
131
-
exports[`basic search g-a-g response 1`] =`
165
+
exports[`geocoder-arcgis-geojson search should make basic search query: basic search g-a-g response 1`] =`
132
166
Object {
133
167
"features": Array [
134
168
Object {
@@ -137,7 +171,7 @@ Object {
137
171
-68.28902999999997,
138
172
44.29358000000008,
139
173
],
140
-
"type": "point",
174
+
"type": "Point",
141
175
},
142
176
"properties": Object {
143
177
"confidence": 1,
@@ -151,15 +185,15 @@ Object {
151
185
"region": "Maine",
152
186
"resultId": undefined,
153
187
},
154
-
"type": "feature",
188
+
"type": "Feature",
155
189
},
156
190
Object {
157
191
"geometry": Object {
158
192
"coordinates": Array [
159
193
175.91785000000004,
160
194
-37.552359999999965,
161
195
],
162
-
"type": "point",
196
+
"type": "Point",
163
197
},
164
198
"properties": Object {
165
199
"confidence": 0.7440000000000001,
@@ -173,15 +207,15 @@ Object {
173
207
"region": "",
174
208
"resultId": undefined,
175
209
},
176
-
"type": "feature",
210
+
"type": "Feature",
177
211
},
178
212
Object {
179
213
"geometry": Object {
180
214
"coordinates": Array [
181
215
-93.16481632584107,
182
216
42.01650127782905,
183
217
],
184
-
"type": "point",
218
+
"type": "Point",
185
219
},
186
220
"properties": Object {
187
221
"confidence": 0.6713,
@@ -195,15 +229,15 @@ Object {
195
229
"region": "Iowa",
196
230
"resultId": undefined,
197
231
},
198
-
"type": "feature",
232
+
"type": "Feature",
199
233
},
200
234
Object {
201
235
"geometry": Object {
202
236
"coordinates": Array [
203
237
-93.16319981148884,
204
238
42.016789740145164,
205
239
],
206
-
"type": "point",
240
+
"type": "Point",
207
241
},
208
242
"properties": Object {
209
243
"confidence": 0.6713,
@@ -217,15 +251,15 @@ Object {
217
251
"region": "Iowa",
218
252
"resultId": undefined,
219
253
},
220
-
"type": "feature",
254
+
"type": "Feature",
221
255
},
222
256
Object {
223
257
"geometry": Object {
224
258
"coordinates": Array [
225
259
7.554969892325715,
226
260
52.121028096728054,
227
261
],
228
-
"type": "point",
262
+
"type": "Point",
229
263
},
230
264
"properties": Object {
231
265
"confidence": 0.604,
@@ -239,7 +273,7 @@ Object {
239
273
"region": "Nordrhein-Westfalen",
240
274
"resultId": undefined,
241
275
},
242
-
"type": "feature",
276
+
"type": "Feature",
243
277
},
244
278
],
245
279
"query": Object {
@@ -248,38 +282,4 @@ Object {
248
282
}
249
283
`;
250
284
251
-
exports[`basic search request uri 1`] =`"/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?outFields=*&maxLocations=10&SingleLine=123%20main%20st&f=json"`;
252
-
253
-
exports[`bulk g-a-g response with no address found 1`] =`
254
-
Object {
255
-
"features": Array [
256
-
Object {
257
-
"geometry": Object {
258
-
"coordinates": Array [
259
-
0,
260
-
0,
261
-
],
262
-
"type": "point",
263
-
},
264
-
"properties": Object {
265
-
"confidence": 0,
266
-
"country": "",
267
-
"country_a": "",
268
-
"county": "",
269
-
"label": "Address not found",
270
-
"locality": "",
271
-
"name": "",
272
-
"neighbourhood": "",
273
-
"region": "",
274
-
"resultId": 0,
275
-
},
276
-
"type": "feature",
277
-
},
278
-
],
279
-
"query": Object {
280
-
"addresses": Array [
281
-
"aefgjil",
282
-
],
283
-
},
284
-
}
285
-
`;
285
+
exports[`geocoder-arcgis-geojson search should make basic search query: basic search request uri 1`] =`"/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?outFields=*&maxLocations=10&SingleLine=123%20main%20st&f=json"`;
0 commit comments