Skip to content

Commit

Permalink
Merge pull request #254 from praveenag/1.4
Browse files Browse the repository at this point in the history
fix neo4jerror name issue
  • Loading branch information
praveenag authored Jun 27, 2017
2 parents be4ffad + 786528c commit 4d628f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/v1/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class Neo4jError extends Error {
super( message );
this.message = message;
this.code = code;
this.name = "Neo4jError"
}
}

Expand Down
1 change: 1 addition & 0 deletions test/internal/connector.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ describe('connector', () => {
expect(() => {
throw error;
}).toThrow(new Neo4jError(expectedMessage, expectedCode));
expect(error.name).toBe("Neo4jError");
}

function basicAuthToken() {
Expand Down

0 comments on commit 4d628f5

Please sign in to comment.