8000 fix(linter): grammer in jest/valid-expect diagnostic (#11522) · oxc-project/oxc@7430b14 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7430b14

Browse files
committed
fix(linter): grammer in jest/valid-expect diagnostic (#11522)
1 parent b92ac41 commit 7430b14

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/oxc_linter/src/rules/jest/valid_expect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ impl Message {
405405
match self {
406406
Self::MatcherNotFound => (
407407
"Expect must have a corresponding matcher call.",
408-
"Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)",
408+
"Did you forget add a matcher, e.g. `toBe`, `toBeDefined`",
409409
),
410410
Self::MatcherNotCalled => (
411411
"Matchers must be called to assert.",

crates/oxc_linter/src/snapshots/jest_valid_expect.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ source: crates/oxc_linter/src/tester.rs
6969
1expect('something');
7070
· ───────────────────
7171
╰────
72-
help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)
72+
help: Did you forget add a matcher, e.g. `toBe`, `toBeDefined`
7373

7474
eslint-plugin-jest(valid-expect): Expect must have a corresponding matcher call.
7575
╭─[valid_expect.tsx:1:1]
7676
1expect();
7777
· ────────
7878
╰────
79-
help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)
79+
help: Did you forget add a matcher, e.g. `toBe`, `toBeDefined`
8080

8181
eslint-plugin-jest(valid-expect): Matchers must be called to assert.
8282
╭─[valid_expect.tsx:1:1]
@@ -496,7 +496,7 @@ source: crates/oxc_linter/src/tester.rs
496496
· ──────────────────────────
497497
4 │ });
498498
╰────
499-
help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)
499+
help: Did you forget add a matcher, e.g. `toBe`, `toBeDefined`
500500

501501
eslint-plugin-jest(valid-expect): Expect requires at least 1 argument
502502
╭─[valid_expect.tsx:1:1]
@@ -566,14 +566,14 @@ source: crates/oxc_linter/src/tester.rs
566566
1expect("something");
567567
· ───────────────────
568568
╰────
569-
help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)
569+
help: Did you forget add a matcher, e.g. `toBe`, `toBeDefined`
570570

571571
eslint-plugin-jest(valid-expect): Expect must have a corresponding matcher call.
572572
╭─[valid_expect.tsx:1:1]
573573
1expect();
574574
· ────────
575575
╰────
576-
help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)
576+
help: Did you forget add a matcher, e.g. `toBe`, `toBeDefined`
577577

578578
eslint-plugin-jest(valid-expect): Matchers must be called to assert.
579579
╭─[valid_expect.tsx:1:1]
@@ -948,4 +948,4 @@ source: crates/oxc_linter/src/tester.rs
948948
· ──────────────────────────
949949
4 │ });
950950
╰────
951-
help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`)
951+
help: Did you forget add a matcher, e.g. `toBe`, `toBeDefined`

0 commit comments

Comments
 (0)
0