Skip to content

Commit 131c1b1

Browse files
committed
fix error
1 parent c07ec8c commit 131c1b1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/features/terminalEnvVarInjectorBasic.unit.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ suite('TerminalEnvVarInjector Basic Tests', () => {
5454
} as Disposable);
5555
return mockEvent;
5656
});
57+
58+
// Mock workspace.onDidChangeConfiguration to return a Disposable
59+
sinon.stub(workspace, 'onDidChangeConfiguration').returns({
60+
dispose: () => {},
61+
} as Disposable);
5762
});
5863

5964
teardown(() => {
@@ -96,6 +101,11 @@ suite('TerminalEnvVarInjector Basic Tests', () => {
96101
return mockEvent;
97102
});
98103

104+
// Mock workspace.onDidChangeConfiguration to return a Disposable
105+
sinon.stub(workspace, 'onDidChangeConfiguration').returns({
106+
dispose: () => {},
107+
} as Disposable);
108+
99109
// Act
100110
injector = new TerminalEnvVarInjector(envVarCollection.object, envVarManager.object);
101111

0 commit comments

Comments
 (0)