Skip to content

Commit

Permalink
Imporved test in timelineHelper.test.ts
Browse files Browse the repository at this point in the history
Test now compares the unpacked object map to original object.
  • Loading branch information
the-bay-kay committed Jan 25, 2024
1 parent d54ce29 commit cdb7138
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/__tests__/timelineHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ describe('compositeTrips2TimelineMap', () => {
it('Works with a list of len >= 1, with flag', () => {
testValue = compositeTrips2TimelineMap(tripListTwo, true);
expect(testValue.size).toBe(6);
for (const [key,value] of Object.entries(testValue)) {
expect(value).toBe(tripListTwo[0][key] || tripListTwo[1][key])
}
});
});

Expand Down

0 comments on commit cdb7138

Please sign in to comment.