Fix mixed-deck Nexus Betrayal continuations
Verify and publish checkpoint container / container (push) Canceled after 0s
Verify and publish checkpoint container / container (push) Canceled after 0s
This commit is contained in:
1 parent
6204efb7e4
commit
7680e1ee69
15 files changed
+487
-46
No files matched your search
@@ -157,12 +157,15 @@ void test('A real retirement shuffle may return the same physical identity as th
|
||||
assert.equal('nexusHarkonnenReplacementHistory' in rival,false);
|
||||
stock(mentat);
|
||||
});
|
||||
void test('Fresh admission rejects replay, modules and ordinary-game retrofit while preserving lobby immutably',()=>{
|
||||
void test('Fresh admission rejects replay and accepts an unused selected Ix deck while preserving the lobby',()=>{
|
||||
let lobby=createGame('HARKBOUND',newPlayer('h','H','harkonnen'),false);joinGame(lobby,newPlayer('g','G','guild'));
|
||||
for(const p of lobby.players) lobby=applyAction(lobby,p.id,{type:'ready'});
|
||||
lobby.nexusCards={cards:null,phase:null};
|
||||
const before=JSON.stringify(lobby),started=initializeHarkonnenNexusBetrayalGameForAudit(lobby);
|
||||
assert.equal(JSON.stringify(lobby),before);assert.equal(started.nexusHarkonnenBetrayalPreview,true);
|
||||
assert.throws(()=>initializeHarkonnenNexusBetrayalGameForAudit(started));
|
||||
const modular=structuredClone(lobby);modular.expansions=['ix'];assert.throws(()=>initializeHarkonnenNexusBetrayalGameForAudit(modular));
|
||||
const modular=structuredClone(lobby);modular.expansions=['ix'];
|
||||
const modularBefore=JSON.stringify(modular),selected=initializeHarkonnenNexusBetrayalGameForAudit(modular);
|
||||
assert.equal(JSON.stringify(modular),modularBefore);assert.equal(selected.nexusHarkonnenBetrayalPreview,true);
|
||||
assert.deepEqual(selected.expansions,['ix']);assert.ok(selected.nexusCards?.cards);
|
||||
});
|
||||
Reference in new issue
Block a user