Skip to content

Commit 47dfe96

Browse files
committed
Update findRow test to use toMatchObject for result validation, enhancing test accuracy and readability.
1 parent fa9d4e6 commit 47dfe96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

__tests__/repository/find-row.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ describe("Repository findRow", () => {
5454
and(eq("name", "John Doe"), gt("age", 25))
5555
);
5656

57-
expect(result).toEqual({
58-
id: 1,
57+
expect(result).toMatchObject({
5958
name: "John Doe",
6059
6160
age: 30,

0 commit comments

Comments
 (0)