Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapshots #2485

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading