Alex Tran 1 年之前
父節點
當前提交
829b964df4

+ 2 - 0
server/src/domain/system-config/system-config.service.spec.ts

@@ -86,6 +86,8 @@ const updatedConfig = Object.freeze<SystemConfig>({
   reverseGeocoding: {
     enabled: true,
     citiesFileOverride: CitiesFile.CITIES_500,
+    useMapbox: false,
+    mapboxAccessToken: '',
   },
   oauth: {
     autoLaunch: true,

+ 2 - 0
server/test/repositories/metadata.repository.mock.ts

@@ -5,6 +5,8 @@ export const newMetadataRepositoryMock = (): jest.Mocked<IMetadataRepository> =>
     deleteCache: jest.fn(),
     getExifTags: jest.fn(),
     initLocalGeocoding: jest.fn(),
+    deinitMapboxGeocoding: jest.fn(),
+    initMapboxGeocoding: jest.fn(),
     teardown: jest.fn(),
     reverseGeocode: jest.fn(),
   };