Skip to content

Commit

Permalink
fix(id): unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yavorss committed Feb 19, 2024
1 parent a12d51d commit 6fc6b03
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ describe('UsersRepository', () => {

const result = await users.insertOne(user);

expect(usersQb.insert).toHaveBeenCalledWith(user);
expect(usersQb.insert).toHaveBeenCalledWith({
id: expect.any(String),
...user,
});
expect(usersQb.returning).toHaveBeenCalledWith('*');
expect(usersQb.then).toHaveBeenCalled();
expect(usersQb.catch).toHaveBeenCalled();
Expand Down

0 comments on commit 6fc6b03

Please sign in to comment.