Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
julianrojas87 committed Sep 27, 2022
1 parent fb67f2e commit a531a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/gtfsrt2lc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,13 +594,13 @@ test('Cover Utils functions', async () => {

// Test for URI building function
const connTimes = Utils.resolveURI(
uri_templates("http://example.org/test/{connection.departureTime(yyyyMMdd'T'HHmm)}/{connection.arrivalTime(yyyyMMdd'T'HHmm)}"),
{ departureTime: new Date('Sep 27 2022 19:00:00 GMT+0200'), arrivalTime: new Date('Sep 27 2022 19:10:00 GMT+0200') }
uri_templates("http://example.org/test/{connection.departureTime(yyyyMMdd)}/{connection.arrivalTime(yyyyMMdd)}"),
{ departureTime: new Date('2022-09-27'), arrivalTime: new Date('2022-09-27') }
);

expect(regular).toBe('gtfs:Regular');
expect(notAvailable).toBe('gtfs:NotAvailable');
expect(mustPhone).toBe('gtfs:MustPhone');
expect(mustCoordinate).toBe('gtfs:MustCoordinateWithDriver');
expect(connTimes).toBe("http://example.org/test/20220927T1900/20220927T1910")
expect(connTimes).toBe("http://example.org/test/20220927/20220927")
});

0 comments on commit a531a8d

Please sign in to comment.