mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
refactor: compose configurable geocoding and route services
This commit is contained in:
1 parent
3b91feffdc
commit
8b36c28b06
25 files changed
+764
-211
No files matched your search
@@ -314,7 +314,9 @@ test('forward geocoding is composed once and consumers do not call a source dire
|
||||
assert.match(source, /placeSearch\.geocode\(/);
|
||||
assert.doesNotMatch(source, /geocodeKeyless|geocode\/json\?address/);
|
||||
}
|
||||
const setup = fs.readFileSync(path.join(ROOT, 'src/standalone/placeSearch.js'), 'utf8');
|
||||
const standalone = fs.readFileSync(path.join(ROOT, 'src/standalone/placeSearch.js'), 'utf8');
|
||||
assert.match(standalone, /createDefaultPlaceSearch as createStandalonePlaceSearch/);
|
||||
const setup = fs.readFileSync(path.join(ROOT, 'src/search/defaults.js'), 'utf8');
|
||||
assert.match(setup, /createGoogleGeocoder/);
|
||||
assert.match(setup, /createPhotonGeocoder/);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user