Skip to content

Commit 967c612

Browse files
committed
test fixes
1 parent 71f3b1f commit 967c612

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

packages/bolt-connection/test/bolt/__snapshots__/bolt-protocol-v1.test.js.snap

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@ exports[`#unit BoltProtocolV1 .packable() should pack types introduced afterward
3333
{
3434
"days": 1,
3535
"months": 1,
36-
"nanoseconds": Integer {
37-
"high": 0,
38-
"low": 1,
39-
},
40-
"seconds": Integer {
41-
"high": 0,
42-
"low": 1,
43-
},
36+
"nanoseconds": 1,
37+
"seconds": 1,
4438
}
4539
`;
4640

packages/neo4j-driver/test/examples.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,8 @@ describe('#integration examples', () => {
11011101
expect(neo4j.isDuration(durationField)).toEqual(true)
11021102
expect(durationField.months.toInt()).toEqual(duration.months)
11031103
expect(durationField.days.toInt()).toEqual(duration.days)
1104-
expect(durationField.seconds).toEqual(duration.seconds)
1105-
expect(durationField.nanoseconds).toEqual(duration.nanoseconds)
1104+
expect(durationField.seconds.toInt()).toEqual(duration.seconds)
1105+
expect(durationField.nanoseconds.toInt()).toEqual(duration.nanoseconds)
11061106
} finally {
11071107
await session.close()
11081108
}

0 commit comments

Comments
 (0)