From 09cff8611ba48946cfb7aaf1929e8c5be9c4911c Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Mon, 11 Jan 2021 04:51:20 +0000 Subject: [PATCH] Fix ArcanistJSHintLinterTestCase::testLinter for recent JSHint Summary: Recent JSHint improves the warning and attributes it to the equals sign rather than the end of the expression (changed in 897e0359ce19, first released in 2.11.0-rc1). Test Plan: Ran arc unit with JSHint 2.12.0 Reviewers: epriestley, joshuaspence, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D21503 --- src/lint/linter/__tests__/jshint/expected-conditional.lint-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lint/linter/__tests__/jshint/expected-conditional.lint-test b/src/lint/linter/__tests__/jshint/expected-conditional.lint-test index 42b75257..cad276b6 100644 --- a/src/lint/linter/__tests__/jshint/expected-conditional.lint-test +++ b/src/lint/linter/__tests__/jshint/expected-conditional.lint-test @@ -3,4 +3,4 @@ if (foo = 'bar') { return true; } ~~~~~~~~~~ -warning:2:16:W084 +warning:2:9:W084