Allow group admission with compatible commitments
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
0faa7923b0
commit
6524ed3bf2
14 files changed
+679
-53
No files matched your search
@@ -67,9 +67,10 @@ void test('a positive bribe answer allows owned group departure and remains paya
|
||||
let game = ask('yes');
|
||||
const projected = viewGame(game, 'a').coalitionNexus; assert.ok(projected);
|
||||
const options = coalitionNexusOptions(projected);
|
||||
assert.equal(options.mayLeave, true); assert.equal(options.invitations.length, 0);
|
||||
assert.equal(options.mayLeave, true);
|
||||
assert.ok(options.invitations.every(invitation => invitation.entrant !== 'd'));
|
||||
const markup = renderToStaticMarkup(createElement(CoalitionNexus, {view:projected, onIntent:()=>{}}));
|
||||
assert.match(markup, /Leave/); assert.doesNotMatch(markup, /Invite .* to /);
|
||||
assert.match(markup, /Leave/);
|
||||
blockedProposal(game);
|
||||
game = leave(game, 'a');
|
||||
assert.equal(coalitionOf(game.players, game.coalitionState, 'a'), null);
|
||||
@@ -85,7 +86,6 @@ void test('a positive bribe answer allows owned group departure and remains paya
|
||||
|
||||
void test('a negative bribe answer survives another member departing and retains its cap', () => {
|
||||
let game = ask('no');
|
||||
blockedProposal(game);
|
||||
game = leave(game, 'b');
|
||||
assert.deepEqual(coalitionOf(game.players, game.coalitionState, 'a')!.members, ['a','c']);
|
||||
const before = structuredClone(game);
|
||||
|
||||
Reference in new issue
Block a user