Skip to content

Commit

Permalink
Fix: deprecation warning in RuleTester using Node v11 (#11009)
Browse files Browse the repository at this point in the history
  • Loading branch information
not-an-aardvark authored Oct 25, 2018
1 parent e349a03 commit 9152417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/testers/rule-tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class RuleTester {
*/
function assertASTDidntChange(beforeAST, afterAST) {
if (!lodash.isEqual(beforeAST, afterAST)) {
assert.fail(null, null, "Rule should not modify AST.");
assert.fail("Rule should not modify AST.");
}
}

Expand Down Expand Up @@ -551,7 +551,7 @@ class RuleTester {
} else {

// Message was an unexpected type
assert.fail(message, null, "Error should be a string, object, or RegExp.");
assert.fail(`Error should be a string, object, or RegExp, but found (${util.inspect(message)})`);
}
}
}
Expand Down

0 comments on commit 9152417

Please sign in to comment.