Skip to content

Commit

Permalink
for timelineHelper test, put mockTransitions in reverse order
Browse files Browse the repository at this point in the history
When the usercache is queried, it returns entries in reverse chronological order; the mock should reflect this so the test ensures they are sorted correctly.
It would have helped us catch #1189 sooner.
  • Loading branch information
JGreenlee committed Dec 10, 2024
1 parent 34fbe4b commit 478fc18
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/__mocks__/timelineHelperMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,19 @@ export const mockCompDataTwo = {
export const mockTransitions: Array<BEMData<TripTransition>> = [
{
data: {
// mock of a startTransition
// mock of an endTransition
currstate: '',
transition: 'T_EXITED_GEOFENCE',
ts: 1,
transition: 'T_TRIP_ENDED',
ts: 9999,
},
metadata: mockMetaData,
},
{
data: {
// mock of an endTransition
// mock of a startTransition
currstate: '',
transition: 'T_TRIP_ENDED',
ts: 9999,
transition: 'T_EXITED_GEOFENCE',
ts: 1,
},
metadata: mockMetaData,
},
Expand Down

0 comments on commit 478fc18

Please sign in to comment.