feat: harden phase one workflows
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import {
|
||||
buildGroupBuyOrderActionPath,
|
||||
buildGroupBuyOrderQuery,
|
||||
filterPendingDeliveryGroupBuyOrders,
|
||||
groupBuyOrderDispatchLabel
|
||||
} from './groupBuyApi'
|
||||
@@ -30,6 +31,18 @@ describe('group buy dispatch helpers', () => {
|
||||
expect(buildGroupBuyOrderActionPath(1, 'confirm')).toBe('/api/admin/group-buy-orders/1/confirm')
|
||||
expect(buildGroupBuyOrderActionPath(1, 'ready')).toBe('/api/admin/group-buy-orders/1/ready')
|
||||
})
|
||||
|
||||
it('builds group buy order page query params', () => {
|
||||
expect(buildGroupBuyOrderQuery({
|
||||
status: 'PENDING_CONFIRM',
|
||||
pageNo: 2,
|
||||
pageSize: 10
|
||||
})).toEqual({
|
||||
status: 'PENDING_CONFIRM',
|
||||
pageNo: 2,
|
||||
pageSize: 10
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
function groupBuyOrder(overrides: Partial<GroupBuyOrder>): GroupBuyOrder {
|
||||
|
||||
Reference in New Issue
Block a user