@@ -26,26 +26,6 @@ describe("Neo4jContainer", { timeout: 180_000 }, () => {
2626 // }
2727 } ) ;
2828
29- // v5DefaultPassword {
30- it ( "should connect to neo4j:v5 with default password" , async ( ) => {
31- await using container = await new Neo4jContainer ( "neo4j:5.23.0" ) . start ( ) ;
32- const driver = neo4j . driver (
33- container . getBoltUri ( ) ,
34- neo4j . auth . basic ( container . getUsername ( ) , container . getPassword ( ) )
35- ) ;
36-
37- const session = driver . session ( ) ;
38- const personName = "Chris" ;
39- const result = await session . run ( "CREATE (a:Person {name: $name}) RETURN a" , { name : personName } ) ;
40- const singleRecord = result . records [ 0 ] ;
41- const node = singleRecord . get ( 0 ) ;
42- expect ( node . properties . name ) . toBe ( personName ) ;
43-
44- await session . close ( ) ;
45- await driver . close ( ) ;
46- } ) ;
47- // }
48-
4929 it ( "should connect with custom password" , async ( ) => {
5030 // setPassword {
5131 await using container = await new Neo4jContainer ( IMAGE ) . withPassword ( "xyz1234@!" ) . start ( ) ;
@@ -88,7 +68,7 @@ describe("Neo4jContainer", { timeout: 180_000 }, () => {
8868
8969 it ( "should work with plugin list" , async ( ) => {
9070 // pluginsList {
91- await using container = await new Neo4jContainer ( "neo4j:5.26.5" )
71+ await using container = await new Neo4jContainer ( IMAGE )
9272 . withPlugins ( [ Neo4jPlugin . APOC_EXTENDED , Neo4jPlugin . GRAPH_DATA_SCIENCE ] )
9373 . withStartupTimeout ( 120_000 )
9474 . start ( ) ;
0 commit comments