Skip to content

Commit

Permalink
Fix temporal it tests (#990)
Browse files Browse the repository at this point in the history
New UTC zoned date time has timeZoneOffsetInSeconds values.

Co-authored-by: Florent Biville <445792+fbiville@users.noreply.github.com>
  • Loading branch information
bigmontz and fbiville authored Sep 7, 2022
1 parent d5e13fb commit 18675df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/neo4j-driver/test/temporal-types.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,11 @@ describe('#integration temporal-types', () => {
expect(records.length).toEqual(1)

const receivedValue = records[0].get(0)
// Amend test to ignore timeZoneOffsetInSeconds returned by the
// new servers in ZonedDateTime with the utc fix
if (value.timeZoneId != null && receivedValue.timeZoneOffsetSeconds != null) {
receivedValue.timeZoneOffsetInSeconds = undefined
}
expect(receivedValue).toEqual(value)
}

Expand Down

0 comments on commit 18675df

Please sign in to comment.