feedback5 WE2: remove the kits/tier1-6.js re-export shims and shared/standIn.js diyRecord (#5)
Nothing but tests imported them: kits_t3 / kits_alt_t3 / kits_t4 / kits_t5 read kits/index.js TIER_KITS, playtest5_elements / playtest6-combat / facing the real modules, simServe checks /sim/content/kits/index.js; test/backups.test.js composes the prototypes through shared/diy.js diyRecordOf at their locked selection. check:imports passes. Docs: kits/README.md, DATA.md. Golden: no scenario moved.
This commit is contained in:
1 parent
19691d0b06
commit
92a179e71e
18 files changed
+33
-81
No files matched your search
@@ -12,7 +12,7 @@ after(async () => { if (srv) await srv.close(); });
|
||||
test('/sim/ serves the simulation modules read-only; nothing else of server/ is reachable', async () => {
|
||||
srv = await startServer({ port: 0, host: '127.0.0.1', quiet: true });
|
||||
const get = (p, headers = {}) => fetch(srv.url + p, { redirect: 'manual', headers });
|
||||
for (const p of ['/sim/spec.js', '/sim/Battle.js', '/sim/simdata.js', '/sim/constants.js', '/sim/content/index.js', '/sim/content/kits/tier1.js', '/sim/content/support/index.js']) {
|
||||
for (const p of ['/sim/spec.js', '/sim/Battle.js', '/sim/simdata.js', '/sim/constants.js', '/sim/content/index.js', '/sim/content/kits/index.js', '/sim/content/support/index.js']) {
|
||||
const r = await get(p);
|
||||
assert.equal(r.status, 200, p);
|
||||
assert.match(r.headers.get('content-type'), /^text\/javascript/, p);
|
||||
|
||||
Reference in new issue
Block a user