Skip to content

Commit d890958

Browse files
committed
Fix some tests
1 parent 42d1748 commit d890958

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/openshift/component.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)