use strict null checks

This commit is contained in:
sbriat
2023-08-25 15:16:33 +02:00
parent effe51b9a2
commit f15e7d11b1
16 changed files with 91 additions and 165 deletions

View File

@@ -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);
});
});

View File

@@ -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({