Skip to content

Commit bcba897

Browse files
committed
Address review comments
1 parent fd0e68f commit bcba897

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

test/v1/examples.test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,14 @@ describe('examples', () => {
556556
}
557557

558558
// To collect the session bookmarks
559-
let savedBookmarks = [];
559+
const savedBookmarks = [];
560560

561561
// Create the first person and employment relationship.
562562
const session1 = driver.session(neo4j.WRITE);
563563
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+
() => {
567567
savedBookmarks.push(session1.lastBookmark());
568568

569569
return session1.close();
@@ -572,9 +572,9 @@ describe('examples', () => {
572572
// Create the second person and employment relationship.
573573
const session2 = driver.session(neo4j.WRITE);
574574
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+
() => {
578578
savedBookmarks.push(session2.lastBookmark());
579579

580580
return session2.close();
@@ -585,14 +585,14 @@ describe('examples', () => {
585585
const session3 = driver.session(neo4j.WRITE, savedBookmarks);
586586

587587
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()
590590
)
591591
);
592592
});
593593
// end::pass-bookmarks[]
594594

595-
last.then(ignore => {
595+
last.then(() => {
596596
expect(friends.length).toBe(1);
597597
expect(friends[0].name1).toBe('Alice');
598598
expect(friends[0].name2).toBe('Bob');

0 commit comments

Comments
 (0)