Skip to content

Commit 16ad801

Browse files
committed
Merge branch 'expose-more-types' into 1.1
2 parents 3eb5922 + 9adf9f9 commit 16ad801

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

src/v1/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import {int, isInt} from './integer';
2121
import {driver} from './driver';
2222
import {Node, Relationship, UnboundRelationship, PathSegment, Path} from './graph-types'
2323
import {Neo4jError} from './error';
24+
import Result from './result';
25+
import ResultSummary from './result-summary';
26+
import {Record} from './record';
27+
2428
export default {
2529
driver,
2630
int,
@@ -36,6 +40,9 @@ export default {
3640
Relationship,
3741
UnboundRelationship,
3842
PathSegment,
39-
Path
43+
Path,
44+
Result,
45+
ResultSummary,
46+
Record
4047
}
4148
}

test/v1/driver.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,22 @@ describe('driver', function() {
7575
// When
7676
driver.session();
7777
});
78+
79+
var exposedTypes = [
80+
'Node',
81+
'Path',
82+
'PathSegment',
83+
'Record',
84+
'Relationship',
85+
'Result',
86+
'ResultSummary',
87+
'UnboundRelationship',
88+
];
89+
90+
exposedTypes.forEach(type => {
91+
it(`should expose type ${type}`, function() {
92+
expect(undefined === neo4j.types[type]).toBe(false);
93+
});
94+
});
95+
7896
});

0 commit comments

Comments
 (0)