Skip to content

Commit e81bde8

Browse files
technigePeter Wilhelmsson
authored andcommitted
Updated tests (and docs) to use 4.1
1 parent a9b868b commit e81bde8

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
# Neo4j Driver for JavaScript
22

3-
A database driver for Neo4j 3.0.0+.
3+
This is the official Neo4j driver for JavaScript.
44

55
Resources to get you started:
66

77
- Detailed docs _Not available yet_
88
- [Neo4j Manual](https://neo4j.com/docs/)
99
- [Neo4j Refcard](https://neo4j.com/docs/cypher-refcard/current/)
1010

11-
## What's New
11+
## What's New in 4.1
1212

13-
- Upcoming version is now named as `4.0.0` instead of `2.0.0` to better align with server versions.
14-
- Reactive API (built on top of RxJS) is now available with 4.0 version server, which includes reactive protocol improvements.
15-
- Session instances can now be acquired against a specific database against a multi-database server, which is available with 4.0 version server.
16-
- A new `driver.verifyConnectivity()` method is introduced for connectivity verification purposes.
17-
- Driver default configuration for `encrypted` is now `false` (meaning that driver will only attempt clear text connections by default), and when encryption is explicitly enabled the default trust mode is TRUST_SYSTEM_CA_SIGNED_CERTIFICATES which relies upon underlying system's certificate trust settings.
18-
19-
## Breaking Changes
20-
21-
- Driver API is moved from `neo4j.v1` to `neo4j` namespace.
22-
- `driver#session()` method now makes use of object destructuring rather than positional arguments (see [Acquiring a Session](#acquiring-a-session) for examples).
23-
- `session#close()` and `driver#close()` both now return `Promise`s and no more accept callback function arguments.
24-
- `driver.onError` and `driver.onCompleted` callbacks are completely removed. Errors should be monitored on related code paths (i.e. through `Promise#catch`, etc.).
25-
- `bolt+routing` scheme is now renamed to `neo4j`. `neo4j` scheme is designed to work work with all possible 4.0 server deployments, but `bolt` scheme is still available for explicit single instance connections.
13+
- TODO
2614

2715
## Including the Driver
2816

@@ -511,7 +499,7 @@ To run tests against "default" Neo4j version:
511499

512500
To run tests against specified Neo4j version:
513501

514-
./runTests.sh '-e 4.0.0'
502+
./runTests.sh '-e 4.1.0'
515503

516504
Simple `npm test` can also be used if you already have a running version of a compatible Neo4j server.
517505

@@ -520,6 +508,10 @@ the source code:
520508

521509
gulp watch-n-test
522510

511+
If the `gulp` command line tool is not available, you might need to install this globally:
512+
513+
npm install -g gulp-cli
514+
523515
### Testing on windows
524516

525517
To run the same test suite, run `.\runTest.ps1` instead in powershell with admin right.

TOOLS.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,55 @@
11
# List of tools used throughout the project
22

33
### npm
4+
45
Used for dependency management
56

67
#### Common commands
78

8-
`NEOCTRL_ARGS="-e 4.0" npm test`
9+
`NEOCTRL_ARGS="-e 4.1" npm test`
910

10-
`NEOCTRL_ARGS="-e 4.0" npm run start-neo4j`
11+
`NEOCTRL_ARGS="-e 4.1" npm run start-neo4j`
1112

12-
`NEOCTRL_ARGS="-e 4.0" npm run stop-neo4j`
13+
`NEOCTRL_ARGS="-e 4.1" npm run stop-neo4j`
1314

1415
### gulp
16+
1517
Used for build system
1618

1719
The following commands run tests directly from the source tree compared to `npm test` which runs them in a sandboxed environment.
1820

19-
`NEOCTRL_ARGS="-e 4.0" gulp test-nodejs-unit`
21+
`NEOCTRL_ARGS="-e 4.1" gulp test-nodejs-unit`
2022

21-
`NEOCTRL_ARGS="-e 4.0" gulp test-nodejs-integration`
23+
`NEOCTRL_ARGS="-e 4.1" gulp test-nodejs-integration`
2224

23-
`NEOCTRL_ARGS="-e 4.0" gulp test-nodejs-stub`
25+
`NEOCTRL_ARGS="-e 4.1" gulp test-nodejs-stub`
2426

2527
### jasmine
28+
2629
Used as the testing and assertion framework
2730

28-
`jasmine --filter="#unit Test"` for more fine grained test filtering. This only applies to node environment tests.
31+
`jasmine --filter="#unit Test"` for more fine-grained test filtering. This only applies to node environment tests.
2932

3033
### karma
34+
3135
Used for running tests in real browsers
3236

3337
`gulp test-browser`
3438

3539
### istanbul & nyc
40+
3641
Used for code coverage
3742

3843
`nyc jasmine --filter="#unit"` cover unit tests
3944

4045
### eslint
46+
4147
For linting
4248

4349
### prettier-eslint
50+
4451
For code styling
4552

4653
### husky
47-
For github pre-commit hooks for code styling
4854

55+
For github pre-commit hooks for code styling

esdoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"enable": true
3737
},
3838
"brand": {
39-
"title": "Neo4j Bolt Driver 4.0 for JavaScript",
39+
"title": "Neo4j Bolt Driver 4.1 for JavaScript",
4040
"repository": "https://github.com/neo4j/neo4j-javascript-driver"
4141
}
4242
}

test/internal/shared-neo4j.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const defaultConfig = {
149149

150150
const NEOCTRL_ARGS = 'NEOCTRL_ARGS'
151151
const neoCtrlVersionParam = '-e'
152-
const defaultNeo4jVersion = '4.0'
152+
const defaultNeo4jVersion = '4.1'
153153
const defaultNeoCtrlArgs = `${neoCtrlVersionParam} ${defaultNeo4jVersion}`
154154

155155
function neoctrlArgs () {

0 commit comments

Comments
 (0)