mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 02:26:04 +00:00
fix unit tests
This commit is contained in:
parent
90c24c4597
commit
f2a538f59b
|
@ -56,12 +56,16 @@ suite('NativeExtensionsScanerService Test', () => {
|
|||
fileService.registerProvider(ROOT.scheme, fileSystemProvider);
|
||||
instantiationService.stub(ILogService, logService);
|
||||
instantiationService.stub(IFileService, fileService);
|
||||
const systemExtensionsLocation = joinPath(ROOT, 'system');
|
||||
const userExtensionsLocation = joinPath(ROOT, 'extensions');
|
||||
instantiationService.stub(INativeEnvironmentService, {
|
||||
userHome: ROOT,
|
||||
builtinExtensionsPath: joinPath(ROOT, 'system').fsPath,
|
||||
extensionsPath: joinPath(ROOT, 'extensions').fsPath,
|
||||
builtinExtensionsPath: systemExtensionsLocation.fsPath,
|
||||
extensionsPath: userExtensionsLocation.fsPath,
|
||||
});
|
||||
instantiationService.stub(IProductService, { version: '1.66.0' });
|
||||
await fileService.createFolder(systemExtensionsLocation);
|
||||
await fileService.createFolder(userExtensionsLocation);
|
||||
});
|
||||
|
||||
teardown(() => disposables.clear());
|
||||
|
|
Loading…
Reference in a new issue