Skip to content

Commit

Permalink
tools: fix object name in prefer-assert-methods.js
Browse files Browse the repository at this point in the history
PR-URL: #37544
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
tniessen authored and targos committed May 1, 2021
1 parent 183dba0 commit e4975d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/eslint-rules/prefer-assert-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function parseError(method, op) {
return `'assert.${method}' should be used instead of '${op}'`;
}

const preferedAssertMethod = {
const preferredAssertMethod = {
'===': 'strictEqual',
'!==': 'notStrictEqual',
'==': 'equal',
Expand All @@ -23,7 +23,7 @@ module.exports = function(context) {
return {
[astSelector]: function(node) {
const arg = node.expression.arguments[0];
const assertMethod = preferedAssertMethod[arg.operator];
const assertMethod = preferredAssertMethod[arg.operator];
if (assertMethod) {
context.report({
node,
Expand Down

0 comments on commit e4975d9

Please sign in to comment.