Skip to content

Commit 59eea1e

Browse files
committed
Fix unit test errors
Signed-off-by: Denis Golovin dgolovin@redhat.com
1 parent c72dd52 commit 59eea1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/unit/odo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ suite('odo', () => {
8989
const cwd = 'path/to/some/dir';
9090
await odoCli.execute(command, cwd);
9191

92-
expect(execStub).calledOnceWith(`${command}`, { cwd });
92+
expect(execStub).calledOnceWith(`${command}`, { cwd, env: (odo.getInstance() as odo.OdoImpl).createEnv() });
9393
});
9494

9595
test('execute rejects if an error occurs in the shell command', async () => {

test/unit/util/window.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ suite('Window Utility', () => {
3434
sandbox.stub(process, 'platform').value('win32');
3535
sandbox.stub(process, 'env').value({ComSpec: 'path'});
3636
WindowUtil.createTerminal('name', process.cwd());
37-
expect(termStub).calledOnceWith({cwd: process.cwd(), name: 'name', shellPath: 'path'});
37+
expect(termStub).calledOnceWith({cwd: process.cwd(), name: 'name', shellPath: 'path', env: {ComSpec: 'path'}});
3838
});
3939

4040
});

0 commit comments

Comments
 (0)