fix: align overseas administrator authority assertion with merged baseline

This commit is contained in:
2026-09-14 11:26:16 +08:00
parent 035537e5cc
commit 54f5bdfb1f
2 changed files with 3 additions and 1 deletions
@@ -114,6 +114,8 @@ test('海外空库基线为固定平台管理员提供完整version0授权投影
'platform:overseas-warehouse:product:edit',
])
assert.equal(authorities.length, 106)
assert.ok(overseasSql.includes(`JSON_LENGTH(authorities_json) <> ${authorities.length}`),
'fixed-admin SQL assertion must match the complete authority snapshot')
assert.equal(new Set(authorities).size, authorities.length, 'baseline authorities must not contain duplicates')
assert.equal(authorities.filter((item) => item.startsWith('platform:finance:')).length, 34)
assert.equal(authorities.filter((item) => item.startsWith('platform:overseas-business:')).length, 11)