File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -183,13 +183,13 @@ suite('Openshift/Component', () => {
183183 } ) ;
184184
185185 test ( 'happy path works' , async ( ) => {
186- const steps = [
187- { command : `odo create ${ componentType } :${ version } ${ componentItem . getName ( ) } --binary ${ files [ 0 ] . fsPath } --app ${ appItem . getName ( ) } --project ${ projectItem . getName ( ) } ` , increment : 100 }
188- ] ;
186+
189187 const result = await Component . create ( appItem ) ;
190188
191189 expect ( result ) . equals ( `Component '${ componentItem . getName ( ) } ' successfully created` ) ;
192- expect ( progressStub ) . calledOnceWith ( sinon . match . object , steps ) ;
190+ expect ( progressCmdStub ) . calledOnceWith (
191+ `Creating new component '${ componentItem . getName ( ) } '` ,
192+ `odo create ${ componentType } :${ version } ${ componentItem . getName ( ) } --binary ${ files [ 0 ] . fsPath } --app ${ appItem . getName ( ) } --project ${ projectItem . getName ( ) } ` ) ;
193193 } ) ;
194194
195195 test ( 'returns null when no binary file selected' , async ( ) => {
You can’t perform that action at this time.
0 commit comments