fix(api): correct authProvider unit test mocks #213
@@ -80,7 +80,7 @@ vi.mock("@groombook/db", () => {
|
|||||||
insert: () => ({
|
insert: () => ({
|
||||||
values: (vals: Record<string, unknown>) => ({
|
values: (vals: Record<string, unknown>) => ({
|
||||||
returning: () => [{ ...vals, id: "new-id-1", createdAt: new Date(), updatedAt: new Date() }] as T[],
|
returning: () => [{ ...vals, id: "new-id-1", createdAt: new Date(), updatedAt: new Date() }] as T[],
|
||||||
)),
|
}),
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
return fn(tx);
|
return fn(tx);
|
||||||
|
|||||||
Reference in New Issue
Block a user