@@ -118,22 +118,14 @@ describe("required pipeline variables", () => {
118
118
describe ( "create pipeline tests" , ( ) => {
119
119
it ( "should create a pipeline" , async ( ) => {
120
120
( createPipelineForDefinition as jest . Mock ) . mockReturnValueOnce ( { id : 10 } ) ;
121
- await installBuildUpdatePipeline (
122
- "serviceName" ,
123
- "/path/to/yaml" ,
124
- MOCKED_VALUES
125
- ) ;
121
+ await installBuildUpdatePipeline ( "/path/to/yaml" , MOCKED_VALUES ) ;
126
122
} ) ;
127
123
128
124
it ( "should fail if the build client cant be instantiated" , async ( ) => {
129
125
( getBuildApiClient as jest . Mock ) . mockReturnValueOnce ( Promise . reject ( ) ) ;
130
126
131
127
try {
132
- await installBuildUpdatePipeline (
133
- "serviceName" ,
134
- "/path/to/yaml" ,
135
- MOCKED_VALUES
136
- ) ;
128
+ await installBuildUpdatePipeline ( "/path/to/yaml" , MOCKED_VALUES ) ;
137
129
expect ( true ) . toBe ( false ) ;
138
130
} catch ( _ ) {
139
131
// expecting exception to be thrown
@@ -147,11 +139,7 @@ describe("create pipeline tests", () => {
147
139
) ;
148
140
149
141
try {
150
- await installBuildUpdatePipeline (
151
- "serviceName" ,
152
- "/path/to/yaml" ,
153
- MOCKED_VALUES
154
- ) ;
142
+ await installBuildUpdatePipeline ( "/path/to/yaml" , MOCKED_VALUES ) ;
155
143
expect ( true ) . toBe ( false ) ;
156
144
} catch ( _ ) {
157
145
// expecting exception to be thrown
@@ -164,11 +152,7 @@ describe("create pipeline tests", () => {
164
152
( queueBuild as jest . Mock ) . mockReturnValueOnce ( Promise . reject ( ) ) ;
165
153
166
154
try {
167
- await installBuildUpdatePipeline (
168
- "serviceName" ,
169
- "/path/to/yaml" ,
170
- MOCKED_VALUES
171
- ) ;
155
+ await installBuildUpdatePipeline ( "/path/to/yaml" , MOCKED_VALUES ) ;
172
156
expect ( true ) . toBe ( false ) ;
173
157
} catch ( _ ) {
174
158
// expecting exception to be thrown
0 commit comments