v0.4.4 — New Game dialog for the opening hand and the three revenue rates, Yard renamed Interchange, and two movement bugs behind a mirrored consist
This commit is contained in:
@@ -275,8 +275,13 @@ describe('every published replay actually replays', () => {
|
||||
const save = JSON.parse(readFileSync(join(dir, f), 'utf8')) as {
|
||||
seed: number;
|
||||
history: unknown[];
|
||||
rules?: unknown;
|
||||
};
|
||||
const back = fromSave({ seed: save.seed, history: save.history as never });
|
||||
// The WHOLE save, `rules` included. Rebuilding it from seed and history alone threw away the
|
||||
// one field that says which ruleset the file was recorded under, so this replayed every
|
||||
// published file under the pre-dialog defaults no matter what it said — a test that would
|
||||
// pass a genuinely dead replay the moment the defaults and the file disagreed.
|
||||
const back = fromSave(save as never);
|
||||
assert.equal(
|
||||
back.history.length,
|
||||
save.history.length,
|
||||
|
||||
Reference in New Issue
Block a user