Skip to content

Commit

Permalink
Merge pull request #1127 from PathwayCommons/v0.22.1
Browse files Browse the repository at this point in the history
V0.22.1
  • Loading branch information
jvwong authored Feb 21, 2023
2 parents fb18fa5 + adb1ae0 commit 449ddda
Show file tree
Hide file tree
Showing 17 changed files with 681 additions and 395 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

],
"rules": {
"semi": "error"
"semi": "error",
"no-console": "warn",
"no-unused-vars": "warn"
}
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10
16.19.0
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ AppSignal:
- `APPSIGNAL_APP_NAME` : name of this app (e.g. 'Biofactoid')
- `APPSIGNAL_APP_ENV` : used to indicate which instance is running (e.g 'master', 'production', 'unstable')

Graph Database:

- `GRAPHDB_CONN` : The connection string
- `GRAPHDB_USER` : Authentication username
- `GRAPHDB_PASS` : Authentication password

The following environment variables should always be set in production instances:

- `NODE_ENV` : set to `production`
Expand Down
23 changes: 23 additions & 0 deletions neo4j-test/connect-neo4j.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { expect } from 'chai';
import neo4j from 'neo4j-driver';

import { closeDriver, getDriver, initDriver } from '../src/neo4j/neo4j-driver.js';

describe('01. Initiate Driver', () => {

it('initDriver Should initialize and return a driver', () => {
const driver = initDriver();
expect(driver).an.instanceof(neo4j.Driver);
});

it('getDriver should return the driver', () => {
initDriver();
const driver = getDriver();
expect(driver).an.instanceof(neo4j.Driver);
});

it('closeDriver should remove driver instance', async () => {
const driver = await closeDriver();
expect(driver).to.be.undefined;
});
});
29 changes: 29 additions & 0 deletions neo4j-test/example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
describe('Example set of tests', function () {
before(function () {

});

after(function () {

});

beforeEach(function () {

});

afterEach(function () {

});

it('does something', function () {

});

it('does something else', function () {

});

it('does something completely different', function () {

});
});
Loading

0 comments on commit 449ddda

Please sign in to comment.