Update Healer Man server
This commit is contained in:
1 parent
8b9c95b24f
commit
14e105642c
13 files changed
+355
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import type { OnlineGroupActivity } from "./onlineGroupTypes";
|
||||
import { enterOnlineGroupActivity } from "./OnlineGroupCoordinator";
|
||||
import { enterOnlineGroupActivity, onlineGroupActivityNeedsEntry } from "./OnlineGroupCoordinator";
|
||||
import { SHELVED_MODES_ENABLED } from "./releaseFeatures";
|
||||
|
||||
const normalReleaseIt = SHELVED_MODES_ENABLED ? it.skip : it;
|
||||
@@ -34,6 +34,12 @@ function entryDependencies(enterDungeon: () => boolean) {
|
||||
}
|
||||
|
||||
describe("online group activity entry", () => {
|
||||
it("recognizes a newly published activity while the previous activity is still active", () => {
|
||||
const next = { ...DUNGEON_ACTIVITY, id: "activity-dungeon-2", startedAt: 10_000 };
|
||||
expect(onlineGroupActivityNeedsEntry(next, DUNGEON_ACTIVITY, [DUNGEON_ACTIVITY.id], 10_100)).toBe(true);
|
||||
expect(onlineGroupActivityNeedsEntry(DUNGEON_ACTIVITY, DUNGEON_ACTIVITY, [], 10_100)).toBe(false);
|
||||
});
|
||||
|
||||
it("enters with the leader's source variant and boss difficulty as a fresh shared run", async () => {
|
||||
const dependencies = entryDependencies(() => true);
|
||||
await enterOnlineGroupActivity({ ...DUNGEON_ACTIVITY, difficultyId: "heroic", bossDifficulty: 9 },
|
||||
|
||||
Reference in new issue
Block a user