Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ciminf committed Jun 21, 2022
1 parent 58b43bd commit 27149b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/verify-neo4j-connectivity.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ describe('Verify Neo4j Connectivity', () => {
neo4jService = app.get<Neo4jService>(Neo4jService);
});

beforeEach(async () => {
await neo4jService.run('MATCH (n) DETACH DELETE n', {
sessionOptions: { write: true },
});
});

it('should verify connectivity', async () => {
expect(await neo4jService.verifyConnectivity()).toMatchInlineSnapshot(`
Object {
Expand All @@ -43,7 +49,7 @@ describe('Verify Neo4j Connectivity', () => {
expect(record.get('count')).toMatchInlineSnapshot(`
Integer {
"high": 0,
"low": 2,
"low": 0,
}
`);
},
Expand Down

0 comments on commit 27149b9

Please sign in to comment.