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

fix tests

上级 3ccc7a9a
......@@ -231,8 +231,10 @@ suite('ExtensionsActions Test', () => {
return instantiationService.get(IExtensionsWorkbenchService).queryLocal()
.then(extensions => {
const gallery = aGalleryExtension('a');
const extension = extensions[0];
extension.gallery = gallery;
installEvent.fire({ identifier: gallery.identifier, gallery });
testObject.extension = extensions[0];
testObject.extension = extension;
assert.ok(!testObject.enabled);
});
});
......@@ -327,8 +329,10 @@ suite('ExtensionsActions Test', () => {
return instantiationService.get(IExtensionsWorkbenchService).queryLocal()
.then(extensions => {
testObject.extension = extensions[0];
const gallery = aGalleryExtension('a');
const extension = extensions[0];
extension.gallery = gallery;
testObject.extension = extension;
installEvent.fire({ identifier: gallery.identifier, gallery });
assert.ok(!testObject.enabled);
assert.equal('Installing', testObject.label);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册