Skip to content

Commit

Permalink
Increase coverage of tests for IAction.isAction()
Browse files Browse the repository at this point in the history
  • Loading branch information
Huddo121 committed Oct 19, 2016
1 parent 117f6bb commit af543cf
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 af543cf

Please sign in to comment.