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 1 commit
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 @@ -22,6 +22,7 @@
"fix": "run-p --continue-on-error fix:*",
"fix:eslint-docs": "eslint-doc-generator",
"fix:js": "npm run lint:js -- --fix",
"fix:snapshots": "ava --update-snapshots",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also including the snapshots in the fix command, which I thought was enough initially but it did not update the snapshots

"fix:markdown": "npm run lint:markdown -- --fix",
"integration": "node ./test/integration/test.mjs",
"lint": "run-p --continue-on-error lint:*",
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