Add Void difficulty and publish changelogs
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m40s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m40s
This commit is contained in:
@@ -68,6 +68,31 @@ try {
|
||||
JSON.stringify({ ...base, ...payload }),
|
||||
])
|
||||
)[0].id;
|
||||
const voidEvent = await create({
|
||||
difficulty: "void",
|
||||
roundTimeSeconds: 10,
|
||||
timerMode: "perMini",
|
||||
});
|
||||
const voidRules = (
|
||||
await q(
|
||||
"select difficulty_settings,round_time_seconds,timer_mode from public.tournaments where id=$1",
|
||||
[voidEvent],
|
||||
)
|
||||
)[0];
|
||||
assert.equal(voidRules.difficulty_settings.seconds, 10);
|
||||
assert.equal(voidRules.difficulty_settings.mapPan, false);
|
||||
assert.equal(voidRules.difficulty_settings.scoring, "strict");
|
||||
assert.equal(voidRules.round_time_seconds, 10);
|
||||
assert.equal(voidRules.timer_mode, "perMini");
|
||||
for (const settings of [
|
||||
{ roundTimeSeconds: 90, timerMode: "perMini" },
|
||||
{ roundTimeSeconds: 10, timerMode: "shared" },
|
||||
])
|
||||
await assert.rejects(
|
||||
create({ difficulty: "void", ...settings }),
|
||||
/Void requires a separate 10-second timer/,
|
||||
);
|
||||
await q("delete from public.tournaments where id=$1", [voidEvent]);
|
||||
const act = async (id, user, action = "view", payload = {}) =>
|
||||
(
|
||||
await q("select public.tournament_action($1,$2,$3,$4) value", [
|
||||
|
||||
Reference in New Issue
Block a user