Skip to content

Commit

Permalink
Update snapshots (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Oct 21, 2024
1 parent fe4e7bc commit 8dec962
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
22 changes: 11 additions & 11 deletions test/snapshots/no-negation-in-equality-check.mjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.␊
Expand All @@ -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.␊
Expand All @@ -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.␊
Expand All @@ -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.␊
Expand All @@ -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 | }␊
--------------------------------------------------------------------------------␊
Expand Down Expand Up @@ -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;␊
Expand All @@ -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 | }␊
Expand Down Expand Up @@ -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.␊
Expand All @@ -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.␊
Expand All @@ -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.␊
Expand All @@ -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.␊
Expand Down
Binary file modified test/snapshots/no-negation-in-equality-check.mjs.snap
Binary file not shown.

0 comments on commit 8dec962

Please sign in to comment.