优化
This commit is contained in:
@@ -36,12 +36,12 @@ test('booking supplier fixtures keep ACTIVE and BOOKING but never invent a geogr
|
||||
assert.match(supplierFixture, /status:'ACTIVE'/)
|
||||
assert.doesNotMatch(supplierFixture, /scope\s*:/)
|
||||
|
||||
const supplierBody = financeFixture.slice(financeFixture.indexOf('export function buildSupplierBody'),
|
||||
financeFixture.indexOf('async function createOrder'))
|
||||
assert.match(supplierBody, /category,/)
|
||||
assert.match(supplierBody, /status: 'ACTIVE'/)
|
||||
assert.match(supplierBody, /truckingScope: category === 'TRUCKING' \? 'DOMESTIC' : null/)
|
||||
assert.doesNotMatch(supplierBody, /bookingScope|category === 'BOOKING' \? 'DOMESTIC'/)
|
||||
const selector = financeFixture.slice(financeFixture.indexOf('export async function loadSupplier'), financeFixture.indexOf('async function uploadVoucher'))
|
||||
assert.match(selector, /status === 'ACTIVE'/)
|
||||
assert.match(selector, /item.category === category/)
|
||||
assert.match(selector, /item.truckingScope === truckingScope/)
|
||||
assert.doesNotMatch(selector, /bookingScope/)
|
||||
|
||||
})
|
||||
|
||||
test('Warehouse supplier contract filters by active category without scope in query, save or snapshot', () => {
|
||||
|
||||
Reference in New Issue
Block a user