From 54bb7e3bff819431af1e860daf46844859e002c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sun, 28 Feb 2021 02:37:51 +0100 Subject: [PATCH] tools: fix object name in prefer-assert-methods.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/37544 Reviewed-By: Michaƫl Zasso Reviewed-By: Darshan Sen Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- tools/eslint-rules/prefer-assert-methods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/eslint-rules/prefer-assert-methods.js b/tools/eslint-rules/prefer-assert-methods.js index 400a5d54759c86..0b82e9984a0693 100644 --- a/tools/eslint-rules/prefer-assert-methods.js +++ b/tools/eslint-rules/prefer-assert-methods.js @@ -12,7 +12,7 @@ function parseError(method, op) { return `'assert.${method}' should be used instead of '${op}'`; } -const preferedAssertMethod = { +const preferredAssertMethod = { '===': 'strictEqual', '!==': 'notStrictEqual', '==': 'equal', @@ -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,