mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-03 05:43:13 +00:00
fix(ci): format upsert-user test
This commit is contained in:
parent
70a8fdde38
commit
b9a384d1c9
1 changed files with 4 additions and 4 deletions
|
|
@ -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");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue