feedback2 WE: review wording — ASSETS.md and DESIGN §13 say the HUD sprites are not downloaded (most are on the mirror), §22.5 says the mirror copies match the local sizes and that #38 stays open; setup's no-client row only points to DEPLOY §6 (doctor keeps the copy hint); stale test messages

This commit is contained in:
sganggs committed 2026-10-03 23:51:11 +08:00
1 parent 7f7df66977
commit fadeed2dc6
6 files changed
+16 -11

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ test('docs and messages say what falls back without the local art and how a serv
for (const re of [/3D 棋盘/, /界面图标/, /源石虫/]) assert.match(LOCAL_ART_FALLBACK, re);
assert.ok(!/表情|玩法说明/.test(LOCAL_ART_FALLBACK), 'the emotes and the 玩法说明 pages are downloaded, not local-only');
assert.match(LOCAL_ART_COPY_HINT, /同一版本的整合包/);
// setup's row is printed on every start (scripts/launch.mjs): it names the fallbacks and points to DEPLOY §6; doctor adds the hint
const noClientRow = read('tools/setup.mjs').split('\n').find((l) => l.includes("'未检测到本机明日方舟客户端'"));
assert.ok(noClientRow && noClientRow.includes('LOCAL_ART_FALLBACK') && noClientRow.includes('DEPLOY.md 第 6 节') && !noClientRow.includes('LOCAL_ART_COPY_HINT'), noClientRow);
assert.match(read('tools/doctor.mjs'), /未提取:\$\{LOCAL_ART_FALLBACK\}(\$\{LOCAL_ART_COPY_HINT\})/);
const deploy = read('docs/DEPLOY.md');
const s6 = deploy.slice(deploy.indexOf('## 6. 本地客户端素材'));
assert.ok(deploy.includes('## 6. 本地客户端素材') && s6.length > 200, 'DEPLOY §6');
+1 -1
View File
@@ -248,7 +248,7 @@ describe('public/js/ui/emotes.js helpers', () => {
} };
const realFetch = globalThis.fetch;
test('art URLs come from the manifest only (keyed by picId); unknown / unlisted → null', async () => {
test('art URLs come only from what the manifests list (here the local one, keyed by picId; data/assets.json absent); unknown / unlisted → null', async () => {
globalThis.fetch = async (url) => (String(url).endsWith('/local-assets.json')
? { ok: true, status: 200, json: async () => manifest } : { ok: false, status: 404, json: async () => ({}) });
try {
+1 -1
View File
@@ -41,7 +41,7 @@ test('the release version is what players see', () => {
assert.match(server, /app: APP_VERSION/, '/healthz');
});
test('the English title is the official one: Stronghold Protocol: Alliance (GitHub issues #38 / #42)', () => {
test('the English title is the official one: Stronghold Protocol: Alliance (as in the reply to GitHub issue #38, which stays open)', () => {
// EN client data, activity_table basicInfo.act2autochess.name = "Stronghold Protocol: Alliance" (CN 卫戍协议:盟约);
// the project used to call it "Covenant". The Chinese title stays 卫戍协议:盟约; the repository keeps its name.
const readme = read('README.md');