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,