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: nodejs#37544
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tniessen authored and jasnell committed Mar 5, 2021
1 parent 03942ca commit 54bb7e3
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 54bb7e3

Please sign in to comment.