Update dependency typescript to v5.6.2 (#71)
* Update dependency typescript to v5.6.2 * Fix TS errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
This commit is contained in:
@@ -110,19 +110,20 @@ export const makeGeolocationPosition = ({
|
||||
}: {
|
||||
timestamp?: number;
|
||||
coords?: Partial<GeolocationCoordinates>;
|
||||
}): GeolocationPosition => ({
|
||||
timestamp: timestamp ?? 1647256791840,
|
||||
coords: {
|
||||
accuracy: 1,
|
||||
latitude: 54.001927,
|
||||
longitude: -8.253491,
|
||||
altitude: null,
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
...coords,
|
||||
},
|
||||
});
|
||||
}): GeolocationPosition =>
|
||||
({
|
||||
timestamp: timestamp ?? 1647256791840,
|
||||
coords: {
|
||||
accuracy: 1,
|
||||
latitude: 54.001927,
|
||||
longitude: -8.253491,
|
||||
altitude: null,
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
...coords,
|
||||
},
|
||||
}) as unknown as GeolocationPosition;
|
||||
|
||||
/**
|
||||
* Creates a basic mock of Geolocation
|
||||
|
||||
@@ -38,6 +38,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -50,6 +51,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -62,6 +64,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -74,6 +77,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -86,6 +90,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -98,6 +103,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -110,6 +116,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -122,6 +129,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -134,6 +142,7 @@ describe("parseGeoUri", () => {
|
||||
altitudeAccuracy: null,
|
||||
heading: null,
|
||||
speed: null,
|
||||
toJSON: expect.any(Function),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user