Say who is playing, what you can press, and where you are in the Stage
Mostly presentation, plus one rules fix found on the way.
This commit is contained in:
+5
-2
@@ -78,7 +78,7 @@ describe('narration', () => {
|
||||
const n = narrate(e);
|
||||
assert.ok(n.text.length > 3, `${e.type} produced no useful text`);
|
||||
assert.ok(!/^\[/.test(n.text), `${e.type} fell through to a fallback`);
|
||||
assert.ok(['plain', 'good', 'bad', 'clock', 'quiet'].includes(n.tone), `${e.type} bad tone`);
|
||||
assert.ok(['plain', 'good', 'bad', 'clock', 'quiet', 'phase'].includes(n.tone), `${e.type} bad tone`);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -98,8 +98,11 @@ describe('narration', () => {
|
||||
});
|
||||
|
||||
it('names phases in words rather than identifiers', () => {
|
||||
assert.equal(phaseLabel('loadUnload'), 'Load / Unload');
|
||||
assert.equal(phaseLabel('loadUnload'), 'Cargo');
|
||||
assert.equal(phaseLabel('newTrain'), 'New Train');
|
||||
assert.equal(phaseLabel('shiftChange'), 'Supervisor Shift');
|
||||
assert.equal(phaseLabel('localOps'), 'Local Operations');
|
||||
assert.equal(phaseLabel('mainline'), 'Mainline');
|
||||
});
|
||||
|
||||
it('hides only the events with nothing to show', () => {
|
||||
|
||||
Reference in New Issue
Block a user