test(orders): widen makePb override param to a plain record
This commit is contained in:
parent
370a270b4c
commit
5a869c5f41
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ interface CollectionMock {
|
|||
update?: ReturnType<typeof vi.fn>;
|
||||
}
|
||||
|
||||
function makePb(overrides: Partial<Record<string, CollectionMock>> = {}) {
|
||||
function makePb(overrides: Record<string, CollectionMock> = {}) {
|
||||
const defaults: Record<string, CollectionMock> = {
|
||||
[ORDERS]: {
|
||||
getOne: vi.fn().mockResolvedValue({ id: "ord1", company: "co1" }),
|
||||
|
|
|
|||
Loading…
Reference in a new issue