@@ -35,9 +35,8 @@ describe("git", () => {
3535 }
3636 } ) ;
3737
38- const call = await init ( ) ;
38+ await init ( ) ;
3939 expect ( execute ) . toBeCalledTimes ( 6 ) ;
40- expect ( call ) . toBe ( "Initialization step complete..." ) ;
4140 } ) ;
4241
4342 it ( "should execute commands if an Access Token is provided" , async ( ) => {
@@ -51,10 +50,8 @@ describe("git", () => {
5150 }
5251 } ) ;
5352
54- const call = await init ( ) ;
55-
53+ await init ( ) ;
5654 expect ( execute ) . toBeCalledTimes ( 6 ) ;
57- expect ( call ) . toBe ( "Initialization step complete..." ) ;
5855 } ) ;
5956
6057 it ( "should execute commands if SSH is true" , async ( ) => {
@@ -68,10 +65,9 @@ describe("git", () => {
6865 }
6966 } ) ;
7067
71- const call = await init ( ) ;
68+ await init ( ) ;
7269
7370 expect ( execute ) . toBeCalledTimes ( 6 ) ;
74- expect ( call ) . toBe ( "Initialization step complete..." ) ;
7571 } ) ;
7672
7773 it ( "should fail if there is no provided GitHub Token, Access Token or SSH bool" , async ( ) => {
@@ -87,10 +83,9 @@ describe("git", () => {
8783 ssh : null
8884 } ) ;
8985
90- const call = await init ( ) ;
86+ await init ( ) ;
9187 expect ( setFailed ) . toBeCalledTimes ( 1 ) ;
9288 expect ( execute ) . toBeCalledTimes ( 0 ) ;
93- expect ( call ) . toBe ( "Initialization step complete..." ) ;
9489 } ) ;
9590
9691 it ( "should fail if the build folder begins with a /" , async ( ) => {
@@ -104,11 +99,10 @@ describe("git", () => {
10499 }
105100 } ) ;
106101
107- const call = await init ( ) ;
102+ await init ( ) ;
108103
109104 expect ( setFailed ) . toBeCalledTimes ( 1 ) ;
110105 expect ( execute ) . toBeCalledTimes ( 0 ) ;
111- expect ( call ) . toBe ( "Initialization step complete..." ) ;
112106 } ) ;
113107
114108 it ( "should fail if the build folder begins with a ./" , async ( ) => {
@@ -122,10 +116,9 @@ describe("git", () => {
122116 }
123117 } ) ;
124118
125- const call = await init ( ) ;
119+ await init ( ) ;
126120 expect ( setFailed ) . toBeCalledTimes ( 1 ) ;
127121 expect ( execute ) . toBeCalledTimes ( 0 ) ;
128- expect ( call ) . toBe ( "Initialization step complete..." ) ;
129122 } ) ;
130123
131124 it ( "should not fail if root is used" , async ( ) => {
@@ -139,10 +132,9 @@ describe("git", () => {
139132 }
140133 } ) ;
141134
142- const call = await init ( ) ;
135+ await init ( ) ;
143136
144137 expect ( execute ) . toBeCalledTimes ( 6 ) ;
145- expect ( call ) . toBe ( "Initialization step complete..." ) ;
146138 } ) ;
147139 } ) ;
148140
@@ -158,9 +150,8 @@ describe("git", () => {
158150 }
159151 } ) ;
160152
161- const call = await generateBranch ( ) ;
153+ await generateBranch ( ) ;
162154 expect ( execute ) . toBeCalledTimes ( 6 ) ;
163- expect ( call ) . toBe ( "Deployment branch creation step complete... ✅" ) ;
164155 } ) ;
165156
166157 it ( "should fail if there is no branch" , async ( ) => {
@@ -174,10 +165,9 @@ describe("git", () => {
174165 }
175166 } ) ;
176167
177- const call = await generateBranch ( ) ;
168+ await generateBranch ( ) ;
178169 expect ( execute ) . toBeCalledTimes ( 0 ) ;
179170 expect ( setFailed ) . toBeCalledTimes ( 1 ) ;
180- expect ( call ) . toBe ( "Deployment branch creation step complete... ✅" ) ;
181171 } ) ;
182172 } ) ;
183173
0 commit comments