Release Healer Man 0.1.12

This commit is contained in:
phenom committed 2026-09-01 14:35:56 -04:00
1 parent 13970d03c8
commit 65e24f644e
201 files changed
+5061 -123

No files matched your search

+22 -2
View File
@@ -64,6 +64,10 @@ test("serves the game and authenticated cloud-save API", async () => {
body: JSON.stringify({ expectedRevision: 0, config: { schemaVersion: 1 } }),
});
assert.equal(denied.status, 403);
const deniedRead = await fetch(`${origin}/api/gm/manastorm-config`, {
headers: { Authorization: `Bearer ${auth.token}` },
});
assert.equal(deniedRead.status, 403);
const memberRegistration = await fetch(`${origin}/api/auth/register`, {
method: "POST",
@@ -157,11 +161,27 @@ test("serves the game and authenticated cloud-save API", async () => {
headers: { "Content-Type": "application/json", Authorization: `Bearer ${gmAuth.token}` },
body: JSON.stringify({
expectedRevision: current.revision,
config: { ...current.config, global: { ...current.config.global, chaoticLinkEnabled: false } },
config: {
...current.config,
global: { ...current.config.global, chaoticLinkEnabled: false },
dungeons: {
deadmines: { status: "not-ready", note: "The final door trigger needs fixing." },
},
},
}),
});
assert.equal(published.status, 200);
assert.equal((await published.json()).config.global.chaoticLinkEnabled, false);
const publishedPayload = await published.json();
assert.equal(publishedPayload.config.global.chaoticLinkEnabled, false);
assert.equal(publishedPayload.config.dungeons.deadmines.reviewedBy, "Phenom");
const playerConfig = await (await fetch(`${origin}/api/manastorm-config`)).json();
assert.deepEqual(playerConfig.config.dungeons.deadmines, { status: "not-ready" });
const gmConfig = await (await fetch(`${origin}/api/gm/manastorm-config`, {
headers: { Authorization: `Bearer ${gmAuth.token}` },
})).json();
assert.equal(gmConfig.config.dungeons.deadmines.note, "The final door trigger needs fixing.");
assert.equal(gmConfig.config.dungeons.deadmines.reviewedBy, "Phenom");
} finally {
await new Promise((resolve) => runtime.server.close(resolve));
rmSync(directory, { recursive: true, force: true });