Skip to content

Commit

Permalink
Fix tests #17068
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Feb 19, 2018
1 parent 7c1bb9f commit 02c12bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -467,8 +467,8 @@ suite('ExtensionsActions Test', () => {
return instantiationService.get(IExtensionsWorkbenchService).queryLocal()
.then(extensions => {
testObject.extension = extensions[0];
assert.ok(!testObject.enabled);
assert.equal('extension-action manage hide', testObject.class);
assert.ok(testObject.enabled);
assert.equal('extension-action manage', testObject.class);
assert.equal('', testObject.tooltip);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -797,14 +797,14 @@ suite('ExtensionsWorkbenchService Test', () => {
});
});

test('test system extensions are always enabled', () => {
test('test system extensions can be disabled', () => {
instantiationService.stubPromise(IExtensionManagementService, 'getInstalled', [aLocalExtension('a', {}, { type: LocalExtensionType.System })]);
testObject = instantiationService.createInstance(ExtensionsWorkbenchService);

return testObject.setEnablement(testObject.local[0], EnablementState.Disabled)
.then(() => {
const actual = testObject.local[0];
assert.equal(actual.enablementState, EnablementState.Enabled);
assert.equal(actual.enablementState, EnablementState.Disabled);
});
});

Expand Down

0 comments on commit 02c12bc

Please sign in to comment.