We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec43e43 commit af34207Copy full SHA for af34207
test/session.test.js
@@ -22,6 +22,21 @@ describe('session', function() {
22
});
23
24
25
+ it('should call observers onError on error ', function(done) {
26
+ // Given
27
+ var driver = neo4j.driver("neo4j://localhost");
28
+
29
+ // When & Then
30
+ var records = [];
31
+ driver.session().run( "RETURN 1 AS").subscribe( {
32
+ onError: function(error) {
33
+ expect(error.fields.length).toBe(1);
34
+ driver.close();
35
+ done();
36
+ }
37
+ });
38
39
40
it('should accept a statement object ', function(done) {
41
// Given
42
var driver = neo4j.driver("neo4j://localhost");
0 commit comments