Skip to content

Commit 33f9cf3

Browse files
committed
Adjust some unit tests
1 parent 402ab90 commit 33f9cf3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/neo4j-driver/test/internal/connection-holder.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ describe('#unit ConnectionHolder', () => {
316316
expect(connection.resetInvoked).toBe(1)
317317
})
318318

319-
it('should call connection._release()', () => {
319+
it('should call connection.release()', () => {
320320
expect(connection.releaseInvoked).toBe(1)
321321
})
322322
})
@@ -343,7 +343,7 @@ describe('#unit ConnectionHolder', () => {
343343
expect(connection.resetInvoked).toBe(0)
344344
})
345345

346-
it('should call connection._release()', () => {
346+
it('should call connection.release()', () => {
347347
expect(connection.releaseInvoked).toBe(1)
348348
})
349349
})
@@ -369,7 +369,7 @@ describe('#unit ConnectionHolder', () => {
369369
expect(connection.resetInvoked).toBe(0)
370370
})
371371

372-
it('should call connection._release()', () => {
372+
it('should call connection.release()', () => {
373373
expect(connection.releaseInvoked).toBe(1)
374374
})
375375
})
@@ -398,7 +398,7 @@ describe('#unit ConnectionHolder', () => {
398398
expect(connection.resetInvoked).toBe(1)
399399
})
400400

401-
it('should call connection._release()', () => {
401+
it('should call connection.release()', () => {
402402
expect(connection.releaseInvoked).toBe(1)
403403
})
404404
})
@@ -424,7 +424,7 @@ describe('#unit ConnectionHolder', () => {
424424
expect(connection.resetInvoked).toBe(0)
425425
})
426426

427-
it('should call connection._release()', () => {
427+
it('should call connection.release()', () => {
428428
expect(connection.releaseInvoked).toBe(1)
429429
})
430430
})

packages/neo4j-driver/test/internal/fake-connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default class FakeConnection extends Connection {
110110
return Promise.resolve()
111111
}
112112

113-
_release () {
113+
release () {
114114
this.releaseInvoked++
115115
return Promise.resolve()
116116
}

0 commit comments

Comments
 (0)