forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
f90ba7d989
commit
189b94d6b7
51 files changed
+3448
-154
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
dungeonById,
|
||||
dungeonsByCategory,
|
||||
randomDungeonByCategory,
|
||||
randomRegularDungeon,
|
||||
randomizedBiteSizedDungeons,
|
||||
randomRandomizedBiteSizedDungeon,
|
||||
} from "./dungeonCatalog";
|
||||
@@ -61,6 +62,17 @@ describe("dungeon catalog", () => {
|
||||
.not.toBe("stormwind-stockade");
|
||||
});
|
||||
|
||||
it("selects regular full dungeons without entering either Bite-Sized pool", () => {
|
||||
const first = randomRegularDungeon(undefined, () => 0);
|
||||
const last = randomRegularDungeon(undefined, () => 0.999999);
|
||||
for (const dungeon of [first, last]) {
|
||||
expect(dungeon?.available).toBe(true);
|
||||
expect(["wow", "rom"]).toContain(dungeon?.category);
|
||||
}
|
||||
expect(randomRegularDungeon(first?.id, () => 0)?.id).not.toBe(first?.id);
|
||||
expect(randomRegularDungeon(undefined, () => 0, () => false)).toBeNull();
|
||||
});
|
||||
|
||||
it("keeps randomized replay in the separate randomized Bite-Sized location pool", () => {
|
||||
expect(randomizedBiteSizedDungeons().map((dungeon) => dungeon.id))
|
||||
.toEqual(["randomized-bite-sized-stormwind-stockade"]);
|
||||
|
||||
Reference in new issue
Block a user