提交 d983257e 编写于 作者: S Sandeep Somavarapu

fix tests

上级 8271920c
......@@ -840,7 +840,7 @@ suite('ExtensionsWorkbenchServiceTest', () => {
.then(() => instantiationService.get(IExtensionEnablementService).setEnablement(extensionC, EnablementState.Enabled))
.then(() => {
instantiationService.stubPromise(IExtensionManagementService, 'getInstalled', [extensionA, extensionB, extensionC]);
instantiationService.stubPromise(IDialogService, 'show', 1);
instantiationService.stubPromise(IDialogService, 'show', 2);
testObject = instantiationService.createInstance(ExtensionsWorkbenchService);
return testObject.setEnablement(testObject.local[0], EnablementState.Disabled)
......@@ -1002,7 +1002,7 @@ suite('ExtensionsWorkbenchServiceTest', () => {
.then(() => instantiationService.get(IExtensionEnablementService).setEnablement(extensionC, EnablementState.Enabled))
.then(() => {
instantiationService.stubPromise(IExtensionManagementService, 'getInstalled', [extensionA, extensionB, extensionC]);
instantiationService.stubPromise(IDialogService, 'show', 1);
instantiationService.stubPromise(IDialogService, 'show', 2);
testObject = instantiationService.createInstance(ExtensionsWorkbenchService);
return testObject.setEnablement(testObject.local[0], EnablementState.Disabled)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册