mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:02:41 +00:00
use strict null checks
This commit is contained in:
@@ -8,7 +8,7 @@ describe('Matcher geodesic', () => {
|
||||
it('should get inverse values', () => {
|
||||
const geodesic: Geodesic = new Geodesic();
|
||||
const inv = geodesic.inverse(0, 0, 1, 1);
|
||||
expect(Math.round(inv.azimuth)).toBe(45);
|
||||
expect(Math.round(inv.distance)).toBe(156900);
|
||||
expect(Math.round(inv.azimuth as number)).toBe(45);
|
||||
expect(Math.round(inv.distance as number)).toBe(156900);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -16,14 +16,6 @@ describe('Route Mapper', () => {
|
||||
expect(routeMapper).toBeDefined();
|
||||
});
|
||||
|
||||
it('should map domain entity to persistence data', async () => {
|
||||
expect(routeMapper.toPersistence()).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should map persisted data to domain entity', async () => {
|
||||
expect(routeMapper.toDomain()).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should map domain entity to response', async () => {
|
||||
const now = new Date();
|
||||
const routeEntity: RouteEntity = new RouteEntity({
|
||||
|
||||
Reference in New Issue
Block a user