Skip to content

Commit 729a8c6

Browse files
committed
Adjust unit tests
1 parent afd129a commit 729a8c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/neo4j-driver/test/internal/tx-config.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,19 @@ describe('#unit TxConfig', () => {
5252
})
5353

5454
it('should fail to construct with invalid timeout', () => {
55-
const invalidTimeoutValues = ['15s', [15], {}, 0, int(0), -42, int(-42)]
55+
const invalidTimeoutValues = ['15s', [15], {}, -42, int(-42)]
5656

5757
invalidTimeoutValues.forEach(invalidValue =>
5858
expect(() => new TxConfig({ timeout: invalidValue })).toThrow()
5959
)
6060
})
6161

6262
it('should construct with valid timeout', () => {
63+
testConfigCreationWithTimeout(0)
6364
testConfigCreationWithTimeout(1)
6465
testConfigCreationWithTimeout(42000)
6566

67+
testConfigCreationWithTimeout(int(0))
6668
testConfigCreationWithTimeout(int(1))
6769
testConfigCreationWithTimeout(int(424242))
6870
})

0 commit comments

Comments
 (0)