Rename properties in WillArriveAtStopPayload for more clarity
This commit is contained in:
@@ -770,7 +770,7 @@ describe.each(repositoryImplementations)('$name', (holder) => {
|
||||
|
||||
expect(listener).toHaveBeenCalledTimes(1);
|
||||
const emittedPayload = listener.mock.calls[0][0] as any;
|
||||
expect(emittedPayload.currentArrival).toEqual({
|
||||
expect(emittedPayload.willArriveAt).toEqual({
|
||||
shuttleId: shuttle.id,
|
||||
stopId: stop1.id,
|
||||
timestamp: arrivalTime,
|
||||
@@ -824,14 +824,14 @@ describe.each(repositoryImplementations)('$name', (holder) => {
|
||||
expect(listener).toHaveBeenCalledTimes(2);
|
||||
|
||||
const firstPayload = listener.mock.calls[0][0] as any;
|
||||
expect(firstPayload.currentArrival).toEqual({
|
||||
expect(firstPayload.willArriveAt).toEqual({
|
||||
shuttleId: shuttle.id,
|
||||
stopId: stop1.id,
|
||||
timestamp: firstArrivalTime,
|
||||
});
|
||||
|
||||
const secondPayload = listener.mock.calls[1][0] as any;
|
||||
expect(secondPayload.currentArrival).toEqual({
|
||||
expect(secondPayload.willArriveAt).toEqual({
|
||||
shuttleId: shuttle.id,
|
||||
stopId: stop2.id,
|
||||
timestamp: secondArrivalTime,
|
||||
|
||||
Reference in New Issue
Block a user