diff --git a/packages/api/src/auth/upsert-user.test.ts b/packages/api/src/auth/upsert-user.test.ts index 6afb9e9..882a313 100644 --- a/packages/api/src/auth/upsert-user.test.ts +++ b/packages/api/src/auth/upsert-user.test.ts @@ -24,7 +24,9 @@ function createDb(options: { const setSpy = vi.fn((patch: Record) => ({ where: vi.fn(() => ({ - returning: vi.fn(async () => [{ ...returningRow, ...patch, role: patch.role ?? returningRow.role }]), + returning: vi.fn(async () => [ + { ...returningRow, ...patch, role: patch.role ?? returningRow.role }, + ]), })), })); @@ -88,9 +90,7 @@ describe("upsertUserFromIdentity", () => { name: "Dev Admin", }); - expect(setSpy).toHaveBeenCalledWith( - expect.not.objectContaining({ role: expect.anything() }), - ); + expect(setSpy).toHaveBeenCalledWith(expect.not.objectContaining({ role: expect.anything() })); expect(user.role).toBe("admin"); });