Compose original classic and paired Nexus Discovery modules
This commit is contained in:
1 parent
9e8c718739
commit
c8a6d0bb3c
20 files changed
+1603
-44
No files matched your search
@@ -3,7 +3,6 @@ import assert from 'node:assert/strict';
|
||||
import {
|
||||
RULE_TOPICS,
|
||||
RULE_CHECKLIST_AREAS,
|
||||
PHASE_HELP,
|
||||
phaseRuleId,
|
||||
} from '../game/reference';
|
||||
import { FACTIONS, PHASES } from '../game/catalog';
|
||||
@@ -13,11 +12,9 @@ void test('every phase and base faction has a discoverable rule topic with valid
|
||||
const ids = new Set(RULE_TOPICS.map((t) => t.id));
|
||||
assert.equal(ids.size, RULE_TOPICS.length);
|
||||
for (const topic of RULE_TOPICS) {
|
||||
assert.ok(topic.steps.length > 0, topic.id);
|
||||
for (const related of topic.related ?? [])
|
||||
assert.ok(ids.has(related), `${topic.id} -> ${related}`);
|
||||
}
|
||||
assert.equal(PHASE_HELP.length, PHASES.length);
|
||||
PHASES.forEach((_, i) => assert.ok(ids.has(phaseRuleId(i))));
|
||||
FACTIONS.forEach((f) => assert.ok(ids.has(`faction-${f.id}`)));
|
||||
assert.ok(ids.has('ai-players'));
|
||||
|
||||
Reference in new issue
Block a user