Skip to content

Commit

Permalink
Grammar fix
Browse files Browse the repository at this point in the history
"public fields is" should be "public fields are"
  • Loading branch information
koterpillar committed Jan 24, 2024
1 parent 85853ed commit 9f60945
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function toMatchError(

if (!this.equals(expected.publicFields, got.publicFields)) {
diff.push(
"Error public fields is not the same:",
"Error public fields are not the same:",
this.utils.diff(expected.publicFields, got.publicFields) as string
);
}
Expand Down
2 changes: 1 addition & 1 deletion test/matcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("matcher", () => {
new SpecificError("test", false)
);
}).toThrowErrorMatchingInlineSnapshot(`
"Error public fields is not the same:
"Error public fields are not the same:
- Expected
+ Received
Expand Down

0 comments on commit 9f60945

Please sign in to comment.