fix unit tests

This commit is contained in:
Sandeep Somavarapu 2022-04-07 01:34:22 +05:30
parent 90c24c4597
commit f2a538f59b
No known key found for this signature in database
GPG key ID: DD41CAAC8081CC7D

View file

@ -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());