Add account based multiplayer hosting and bug report retention
This commit is contained in:
@@ -112,18 +112,21 @@ try {
|
||||
.limit(1)
|
||||
.single(),
|
||||
);
|
||||
const host = session(),
|
||||
const host = await account("contributor"),
|
||||
friend = session(),
|
||||
outsider = session();
|
||||
const created = await host("rooms", {
|
||||
datasetId: dataset.id,
|
||||
difficulty: "normal",
|
||||
displayName: "Discord host fixture",
|
||||
playerLimit: 4,
|
||||
});
|
||||
rooms.push(created.id);
|
||||
await journal();
|
||||
const room = await host(`rooms/${created.id}`);
|
||||
assert.equal(
|
||||
room.players.find((p) => p.id === room.hostId).name,
|
||||
"Discord contributor fixture",
|
||||
);
|
||||
assert.equal(typeof room.discord.available, "boolean");
|
||||
assert.equal(room.discord.state, null);
|
||||
await outsider(`rooms/${created.id}/discord`, {}, "POST", 403);
|
||||
|
||||
Reference in New Issue
Block a user