mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Fix test failure: add _serviceBrand to environment service stub
The TerminalSandboxService tests were failing because the mock environment service stub was missing the required _serviceBrand property. This property is mandatory for all service interfaces in VS Code's DI system. Co-authored-by: jrieken <1794099+jrieken@users.noreply.github.com>
This commit is contained in:
@@ -71,6 +71,7 @@ suite('TerminalSandboxService - allowTrustedDomains', () => {
|
||||
instantiationService.stub(IConfigurationService, configurationService);
|
||||
instantiationService.stub(IFileService, fileService);
|
||||
instantiationService.stub(IEnvironmentService, <IEnvironmentService & { tmpDir?: URI; execPath?: string }>{
|
||||
_serviceBrand: undefined,
|
||||
tmpDir: URI.file('/tmp'),
|
||||
execPath: '/usr/bin/node'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user