mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 06:22:40 +00:00
Remove most of the geography module and delegate it to external gRPC microservice
This commit is contained in:
16
src/modules/ad/tests/unit/georouter.mock.ts
Normal file
16
src/modules/ad/tests/unit/georouter.mock.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { GeorouterProviderPort } from '@modules/ad/core/application/ports/georouter-provider.port';
|
||||
|
||||
export const bareMockGeorouter: GeorouterProviderPort = {
|
||||
getRoute: jest.fn(),
|
||||
};
|
||||
|
||||
export const simpleMockGeorouter: GeorouterProviderPort = {
|
||||
getRoute: jest.fn().mockImplementation(() => ({
|
||||
distance: 350101,
|
||||
duration: 14422,
|
||||
fwdAzimuth: 273,
|
||||
backAzimuth: 93,
|
||||
distanceAzimuth: 336544,
|
||||
points: [],
|
||||
})),
|
||||
};
|
||||
Reference in New Issue
Block a user