Skip to content

Commit cf43106

Browse files
committed
Couple fixes after code review
1 parent aee7274 commit cf43106

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/v1/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function driver(url, authToken, config = {}) {
132132
return new RoutingDriver(parseUrl(url), routingContext, USER_AGENT, authToken, config);
133133
} else if (scheme === 'bolt://') {
134134
if (!isEmptyObjectOrNull(routingContext)) {
135-
throw new Error(`Routing parameters are not supported with scheme 'bolt'. Given URL: '${url}'`);
135+
throw new Error(`Parameters are not supported with scheme 'bolt'. Given URL: '${url}'`);
136136
}
137137
return new Driver(parseUrl(url), USER_AGENT, authToken, config);
138138
} else {

test/internal/connector.test.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ describe('connector', () => {
132132
it('should notify when connection initialization fails', done => {
133133
const connection = connect('bolt://localhost:7474'); // wrong port
134134

135-
connection.initializationCompleted().then(() => {
136-
console.log('THEN called: ', arguments)
137-
}).catch(error => {
135+
connection.initializationCompleted().catch(error => {
138136
expect(error).toBeDefined();
139137
done();
140138
});

0 commit comments

Comments
 (0)