diff --git a/package.json b/package.json index 0902c2efde..0c0f92fd38 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "fix:eslint-docs": "eslint-doc-generator", "fix:js": "npm run lint:js -- --fix", "fix:markdown": "npm run lint:markdown -- --fix", + "fix:snapshots": "ava --update-snapshots", "integration": "node ./test/integration/test.mjs", "lint": "run-p --continue-on-error lint:*", "lint:eslint-docs": "npm run fix:eslint-docs -- --check", diff --git a/test/snapshots/no-negation-in-equality-check.mjs.md b/test/snapshots/no-negation-in-equality-check.mjs.md index 3b58274050..9c05b86330 100644 --- a/test/snapshots/no-negation-in-equality-check.mjs.md +++ b/test/snapshots/no-negation-in-equality-check.mjs.md @@ -16,7 +16,7 @@ Generated by [AVA](https://avajs.dev). `␊ > 1 | !foo === bar␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '!==' check.␊ @@ -35,7 +35,7 @@ Generated by [AVA](https://avajs.dev). `␊ > 1 | !foo !== bar␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '===' check.␊ @@ -54,7 +54,7 @@ Generated by [AVA](https://avajs.dev). `␊ > 1 | !foo == bar␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '!=' check.␊ @@ -73,7 +73,7 @@ Generated by [AVA](https://avajs.dev). `␊ > 1 | !foo != bar␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '==' check.␊ @@ -95,7 +95,7 @@ Generated by [AVA](https://avajs.dev). `␊ 1 | function x() {␊ > 2 | return!foo === bar;␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ 3 | }␊ ␊ --------------------------------------------------------------------------------␊ @@ -123,7 +123,7 @@ Generated by [AVA](https://avajs.dev). `␊ 1 | function x() {␊ > 2 | return!␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ 3 | foo === bar;␊ 4 | throw!␊ 5 | foo === bar;␊ @@ -146,7 +146,7 @@ Generated by [AVA](https://avajs.dev). 2 | return!␊ 3 | foo === bar;␊ > 4 | throw!␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ 5 | foo === bar;␊ 6 | }␊ ␊ @@ -174,7 +174,7 @@ Generated by [AVA](https://avajs.dev). `␊ 1 | foo␊ > 2 | !(a) === b␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '!==' check.␊ @@ -196,7 +196,7 @@ Generated by [AVA](https://avajs.dev). `␊ 1 | foo␊ > 2 | ![a, b].join('') === c␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '!==' check.␊ @@ -218,7 +218,7 @@ Generated by [AVA](https://avajs.dev). `␊ 1 | foo␊ > 2 | ! [a, b].join('') === c␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '!==' check.␊ @@ -240,7 +240,7 @@ Generated by [AVA](https://avajs.dev). `␊ 1 | foo␊ > 2 | !/* comment */[a, b].join('') === c␊ - | ^ Negated expression in not allowed in equality check.␊ + | ^ Negated expression is not allowed in equality check.␊ ␊ --------------------------------------------------------------------------------␊ Suggestion 1/1: Switch to '!==' check.␊ diff --git a/test/snapshots/no-negation-in-equality-check.mjs.snap b/test/snapshots/no-negation-in-equality-check.mjs.snap index 27ceae7007..983ecb0b3d 100644 Binary files a/test/snapshots/no-negation-in-equality-check.mjs.snap and b/test/snapshots/no-negation-in-equality-check.mjs.snap differ