Skip to content

Commit

Permalink
Merge pull request #13992 from Huddo121/master
Browse files Browse the repository at this point in the history
Increase coverage of tests for IAction.isAction()
  • Loading branch information
jrieken committed Oct 19, 2016
2 parents c9e82c9 + af543cf commit 74b36ea
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/vs/base/test/common/actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,27 @@ suite('Actions', () => {
enabled: true,
// run: function() { return null; }
}));
assert(!isAction({
id: 'id',
label: 42,
class: 'style',
checked: true,
enabled: true,
}));
assert(!isAction({
id: 'id',
label: 'label',
class: 'style',
checked: 'checked',
enabled: true,
}));
assert(!isAction({
id: 'id',
label: 'label',
class: 'style',
checked: true,
enabled: true,
run: true
}));
});
});

0 comments on commit 74b36ea

Please sign in to comment.