Skip to content

Commit

Permalink
Revert "Review fixes"
Browse files Browse the repository at this point in the history
This reverts commit 8124779.
  • Loading branch information
florianduros committed Sep 26, 2024
1 parent 3b42634 commit 4095d04
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 26 deletions.
31 changes: 11 additions & 20 deletions spec/test-utils/beacon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,26 +101,17 @@ export const makeGeolocationPosition = ({
}: {
timestamp?: number;
coords: Partial<GeolocationCoordinates>;
}): GeolocationPosition => {
const { toJSON, ...coordsJSON } = {
accuracy: 1,
latitude: 54.001927,
longitude: -8.253491,
altitude: null,
altitudeAccuracy: null,
heading: null,
speed: null,
...coords,
};
const posJSON = {
}): GeolocationPosition =>
({
timestamp: timestamp ?? 1647256791840,
coords: {
toJSON: () => coordsJSON,
...coordsJSON,
accuracy: 1,
latitude: 54.001927,
longitude: -8.253491,
altitude: null,
altitudeAccuracy: null,
heading: null,
speed: null,
...coords,
},
};
return {
toJSON: () => posJSON,
...posJSON,
};
};
}) as GeolocationPosition;
14 changes: 8 additions & 6 deletions spec/test-utils/webrtc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@ export class MockRTCPeerConnection {
}

constructor() {
const localDescriptionJSON = {
sdp: DUMMY_SDP,
type: "offer" as RTCSdpType,
};
this.localDescription = {
toJSON: () => localDescriptionJSON,
...localDescriptionJSON,
sdp: DUMMY_SDP,
type: "offer",
toJSON: function (): RTCSessionDescriptionInit {
return {
sdp: DUMMY_SDP,
type: "offer",
};
},
};

this.readyToNegotiate = new Promise<void>((resolve) => {
Expand Down

0 comments on commit 4095d04

Please sign in to comment.