@@ -7,10 +7,7 @@ describe("Gitgraph.getRenderedData.position", () => {
7
7
const core = new GitgraphCore ( ) ;
8
8
const gitgraph = core . getUserApi ( ) ;
9
9
10
- gitgraph
11
- . commit ( "one" )
12
- . commit ( "two" )
13
- . commit ( "three" ) ;
10
+ gitgraph . commit ( "one" ) . commit ( "two" ) . commit ( "three" ) ;
14
11
15
12
const { commits } = core . getRenderedData ( ) ;
16
13
@@ -39,10 +36,7 @@ describe("Gitgraph.getRenderedData.position", () => {
39
36
} ) ;
40
37
const gitgraph = core . getUserApi ( ) ;
41
38
42
- gitgraph
43
- . commit ( "one" )
44
- . commit ( "two" )
45
- . commit ( "three" ) ;
39
+ gitgraph . commit ( "one" ) . commit ( "two" ) . commit ( "three" ) ;
46
40
47
41
const { commits } = core . getRenderedData ( ) ;
48
42
@@ -71,10 +65,7 @@ describe("Gitgraph.getRenderedData.position", () => {
71
65
} ) ;
72
66
const gitgraph = core . getUserApi ( ) ;
73
67
74
- gitgraph
75
- . commit ( "one" )
76
- . commit ( "two" )
77
- . commit ( "three" ) ;
68
+ gitgraph . commit ( "one" ) . commit ( "two" ) . commit ( "three" ) ;
78
69
79
70
const { commits } = core . getRenderedData ( ) ;
80
71
@@ -103,10 +94,7 @@ describe("Gitgraph.getRenderedData.position", () => {
103
94
} ) ;
104
95
const gitgraph = core . getUserApi ( ) ;
105
96
106
- gitgraph
107
- . commit ( "one" )
108
- . commit ( "two" )
109
- . commit ( "three" ) ;
97
+ gitgraph . commit ( "one" ) . commit ( "two" ) . commit ( "three" ) ;
110
98
111
99
const { commits } = core . getRenderedData ( ) ;
112
100
@@ -583,10 +571,7 @@ describe("Gitgraph.getRenderedData.position", () => {
583
571
} ) ;
584
572
const gitgraph = core . getUserApi ( ) ;
585
573
586
- const master = gitgraph
587
- . branch ( "master" )
588
- . commit ( "one" )
589
- . commit ( "two" ) ;
574
+ const master = gitgraph . branch ( "master" ) . commit ( "one" ) . commit ( "two" ) ;
590
575
591
576
// Branch has more commits.
592
577
const dev = gitgraph . branch ( "dev" ) . commit ( "three" ) ;
0 commit comments