Skip to content

Commit

Permalink
Tweak message
Browse files Browse the repository at this point in the history
  • Loading branch information
jdforrester authored and edg2s committed Mar 15, 2020
1 parent e7d0304 commit 1d899ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/no-global-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = {

context.report( {
node: node,
message: 'Avoid expensive queries which result in slow searches of the entire DOM'
message: 'Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible.'
} );
}
};
Expand Down
2 changes: 1 addition & 1 deletion tests/no-global-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const rule = require( '../rules/no-global-selector' );
const RuleTesterAndDocs = require( '../rule-tester-and-docs' );

const error = 'Avoid expensive queries which result in slow searches of the entire DOM';
const error = 'Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible.';

const ruleTester = new RuleTesterAndDocs();
ruleTester.run( 'no-global-selector', rule, {
Expand Down

0 comments on commit 1d899ad

Please sign in to comment.