Skip to content

Commit ca7bca7

Browse files
bigmontzfbiville
andcommitted
Fix temporal it tests (#990)
New UTC zoned date time has timeZoneOffsetInSeconds values. Co-authored-by: Florent Biville <[email protected]>
1 parent 99a58d2 commit ca7bca7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/neo4j-driver/test/temporal-types.test.js

+5
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,11 @@ describe('#integration temporal-types', () => {
14571457
expect(records.length).toEqual(1)
14581458

14591459
const receivedValue = records[0].get(0)
1460+
// Amend test to ignore timeZoneOffsetInSeconds returned by the
1461+
// new servers in ZonedDateTime with the utc fix
1462+
if (value.timeZoneId != null && receivedValue.timeZoneOffsetSeconds != null) {
1463+
receivedValue.timeZoneOffsetInSeconds = undefined
1464+
}
14601465
expect(receivedValue).toEqual(value)
14611466
}
14621467

0 commit comments

Comments
 (0)