Skip to content

Commit 18675df

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,11 @@ describe('#integration temporal-types', () => {
14551455
expect(records.length).toEqual(1)
14561456

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

0 commit comments

Comments
 (0)