Skip to content

Commit 665eda5

Browse files
committed
Fix Cli test errors related to addition of cwd to result
Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent c0c53f8 commit 665eda5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/openshift/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import LogViewLoader from '../view/log/LogViewLoader';
2424
import DescribeViewLoader from '../view/describe/describeViewLoader';
2525
import { vsCommand, VsCommandError } from '../vscommand';
2626
import { SourceType } from '../odo/config';
27-
import { ComponentKind, ComponentType, S2iComponentType } from '../odo/componentType';
27+
import { ComponentKind, ComponentType, DevfileComponentType, S2iComponentType } from '../odo/componentType';
2828

2929
import path = require('path');
3030
import globby = require('globby');

test/unit/cli.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ suite('Cli', () => {
3939
const result = await cli.execute(command, options);
4040

4141
expect(execStub).calledWithExactly(command, options, sinon.match.func);
42-
expect(result).deep.equals({ error: null, stdout, stderr: '' });
42+
expect(result).deep.equals({ error: null, stdout, stderr: '', cwd: 'cwd' });
4343
});
4444

4545
test('execute uses a 2MB buffer by default', async () => {
@@ -53,6 +53,6 @@ suite('Cli', () => {
5353
execStub.yields(error, stdout, stderr);
5454
const result = await cli.execute(command);
5555

56-
expect(result).deep.equals({ error, stdout, stderr });
56+
expect(result).deep.equals({ error, stdout, stderr , cwd: undefined});
5757
});
5858
});

0 commit comments

Comments
 (0)