Skip to content

Commit

Permalink
tests: check error type
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryThePenguin committed Jan 11, 2021
1 parent 43a4ef3 commit edab6f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/lib/rules/no-global-jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,18 +458,14 @@ ruleTester.run('no-global-jquery', rule, {
],
},
{
code: `
export default Ember.Component({
init() {
jQuery.extend();
}
});`,
code: 'jQuery.extend();',
parserOptions,
globals,
output: null,
errors: [
{
message: ERROR_MESSAGE,
type: 'CallExpression',
},
],
},
Expand Down

0 comments on commit edab6f5

Please sign in to comment.