@@ -556,14 +556,14 @@ describe('examples', () => {
556
556
}
557
557
558
558
// To collect the session bookmarks
559
- let savedBookmarks = [ ] ;
559
+ const savedBookmarks = [ ] ;
560
560
561
561
// Create the first person and employment relationship.
562
562
const session1 = driver . session ( neo4j . WRITE ) ;
563
563
const first = session1 . writeTransaction ( tx => addCompany ( tx , 'Wayne Enterprises' ) ) . then (
564
- ignore => session1 . writeTransaction ( tx => addPerson ( tx , 'Alice' ) ) ) . then (
565
- ignore => session1 . writeTransaction ( tx => addEmployee ( tx , 'Alice' , 'Wayne Enterprises' ) ) ) . then (
566
- ignore => {
564
+ ( ) => session1 . writeTransaction ( tx => addPerson ( tx , 'Alice' ) ) ) . then (
565
+ ( ) => session1 . writeTransaction ( tx => addEmployee ( tx , 'Alice' , 'Wayne Enterprises' ) ) ) . then (
566
+ ( ) => {
567
567
savedBookmarks . push ( session1 . lastBookmark ( ) ) ;
568
568
569
569
return session1 . close ( ) ;
@@ -572,9 +572,9 @@ describe('examples', () => {
572
572
// Create the second person and employment relationship.
573
573
const session2 = driver . session ( neo4j . WRITE ) ;
574
574
const second = session2 . writeTransaction ( tx => addCompany ( tx , 'LexCorp' ) ) . then (
575
- ignore => session2 . writeTransaction ( tx => addPerson ( tx , 'Bob' ) ) ) . then (
576
- ignore => session2 . writeTransaction ( tx => addEmployee ( tx , 'Bob' , 'LexCorp' ) ) ) . then (
577
- ignore => {
575
+ ( ) => session2 . writeTransaction ( tx => addPerson ( tx , 'Bob' ) ) ) . then (
576
+ ( ) => session2 . writeTransaction ( tx => addEmployee ( tx , 'Bob' , 'LexCorp' ) ) ) . then (
577
+ ( ) => {
578
578
savedBookmarks . push ( session2 . lastBookmark ( ) ) ;
579
579
580
580
return session2 . close ( ) ;
@@ -585,14 +585,14 @@ describe('examples', () => {
585
585
const session3 = driver . session ( neo4j . WRITE , savedBookmarks ) ;
586
586
587
587
return session3 . writeTransaction ( tx => makeFriends ( tx , 'Alice' , 'Bob' ) ) . then (
588
- ignore => session3 . readTransaction ( findFriendships ) . then (
589
- ignore => session3 . close ( )
588
+ ( ) => session3 . readTransaction ( findFriendships ) . then (
589
+ ( ) => session3 . close ( )
590
590
)
591
591
) ;
592
592
} ) ;
593
593
// end::pass-bookmarks[]
594
594
595
- last . then ( ignore => {
595
+ last . then ( ( ) => {
596
596
expect ( friends . length ) . toBe ( 1 ) ;
597
597
expect ( friends [ 0 ] . name1 ) . toBe ( 'Alice' ) ;
598
598
expect ( friends [ 0 ] . name2 ) . toBe ( 'Bob' ) ;
0 commit comments