Release Healer Man 0.1.22
This commit is contained in:
1 parent
f6f2375145
commit
7f6001723a
144 files changed
+54107
-690
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { createElement } from "react";
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { DefeatedPrompt } from "./Hud";
|
||||
import { DefeatedPrompt, DungeonCompletePrompt } from "./Hud";
|
||||
|
||||
describe("defeated prompt", () => {
|
||||
it("offers an explicit dungeon respawn while explaining that waiting is allowed", () => {
|
||||
@@ -26,3 +26,16 @@ describe("defeated prompt", () => {
|
||||
expect(markup).not.toContain("Resurrect now");
|
||||
});
|
||||
});
|
||||
|
||||
describe("dungeon completion prompt", () => {
|
||||
it("keeps final-room looting available while exposing an explicit run exit", () => {
|
||||
const markup = renderToStaticMarkup(createElement(DungeonCompletePrompt, {
|
||||
dungeonTitle: "The Deadmines",
|
||||
onFinish: () => undefined,
|
||||
}));
|
||||
|
||||
expect(markup).toContain("The Deadmines complete");
|
||||
expect(markup).toContain("Loot the room or finish the run");
|
||||
expect(markup).toContain("Finish dungeon");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user