fix(ci): format upsert-user test

This commit is contained in:
Adam Moussa 2026-09-25 16:48:03 -04:00
parent 70a8fdde38
commit b9a384d1c9
No known key found for this signature in database

View file

@ -24,7 +24,9 @@ function createDb(options: {
const setSpy = vi.fn((patch: Record<string, unknown>) => ({
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");
});