Skip to content

Commit 5c4fe85

Browse files
committed
fix: remove unneeded syntax
1 parent 3bf00e6 commit 5c4fe85

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { expect } from "vitest";
22

3-
export function toIncludeSameMembers<T>(actual: T[], expected: T[]): { pass: boolean; message: () => string } {
3+
export function toIncludeSameMembers<T>(actual: T[], expected: T[]): { pass: boolean } {
44
expect(actual).toEqual(expect.arrayContaining(expected as unknown[]));
55
expect(expected).toEqual(expect.arrayContaining(actual as unknown[]));
66

77
return {
88
pass: true,
9-
message: () =>
10-
`Expected arrays to include the same members.\nExpected: ${JSON.stringify(expected)}\nReceived: ${JSON.stringify(actual)}`,
119
};
1210
}

0 commit comments

Comments
 (0)