fix(api): correct transaction mock closing bracket in authProvider test
Syntax error: `))` was closing the arrow function body prematurely. Change `)),` to `}),` to properly close the values-returning object. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -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