Open expansion-faction starts from the normal lobby
This commit is contained in:
1 parent
5a32c1ac85
commit
5961c75a29
8 files changed
+36
-48
No files matched your search
@@ -299,18 +299,7 @@ for (const [advanced, seed] of [
|
||||
);
|
||||
}));
|
||||
|
||||
void test('the Ix prototype keeps public gates and rejects unsupported or nonempty lobbies without mutation', () => {
|
||||
const publicLobby = lobby(false, [
|
||||
['a', 'atreides'],
|
||||
['h', 'harkonnen'],
|
||||
]);
|
||||
const publicBefore = structuredClone(publicLobby);
|
||||
assert.throws(
|
||||
() => applyAction(publicLobby, publicLobby.host, { type: 'start' }),
|
||||
/Expansion rules are still being implemented/,
|
||||
);
|
||||
assert.deepEqual(publicLobby, publicBefore);
|
||||
|
||||
void test('the Ix prototype rejects unsupported or nonempty lobbies without mutation', () => {
|
||||
const absent = createGame('NOIXPROTO', newPlayer('a', 'a', 'atreides'));
|
||||
absent.players.push(newPlayer('h', 'h', 'harkonnen'));
|
||||
absent.players.forEach((p) => (p.ready = true));
|
||||
|
||||
Reference in new issue
Block a user