优化
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import test from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import { readFile } from 'node:fs/promises'
|
||||
|
||||
test('同柜不可拆组HTTP验收锁定公开接口与防绕过矩阵', async () => {
|
||||
const source = await readFile(new URL('./coload-groups.mjs', import.meta.url), 'utf8')
|
||||
for (const fragment of [
|
||||
'/api/platform/v1/first-leg/coload-groups',
|
||||
'/api/platform/v1/first-leg/coload-groups/batch-query',
|
||||
'/group-assignments',
|
||||
'/inbound-assignments',
|
||||
'/recommend',
|
||||
'/push-preload',
|
||||
'创建同键同载荷精确重放',
|
||||
'创建同键异载荷返回并发冲突',
|
||||
'组成员不能单独调整箱数',
|
||||
'组成员不能单独删除',
|
||||
'整组原子移除',
|
||||
'智能推荐对整组全取或全不取',
|
||||
]) assert.match(source, new RegExp(fragment.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')))
|
||||
})
|
||||
Reference in New Issue
Block a user