diff --git a/src/matcher.ts b/src/matcher.ts index b4ac171..6d733ce 100644 --- a/src/matcher.ts +++ b/src/matcher.ts @@ -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 ); } diff --git a/test/matcher.test.ts b/test/matcher.test.ts index c2bf8f0..c3cb899 100644 --- a/test/matcher.test.ts +++ b/test/matcher.test.ts @@ -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