forked from phenom/healer-man
Release Healer Man 0.1.12
This commit is contained in:
1 parent
13970d03c8
commit
65e24f644e
201 files changed
+5061
-123
No files matched your search
@@ -106,10 +106,24 @@ test("persists revisioned Manastorm GM configuration and rejects stale or unauth
|
||||
const configured = {
|
||||
...initial.config,
|
||||
global: { ...initial.config.global, affixesEnabled: false },
|
||||
dungeons: {
|
||||
deadmines: {
|
||||
status: "not-ready",
|
||||
note: "The final door trigger needs fixing.",
|
||||
reviewedAt: 1,
|
||||
reviewedBy: "SpoofedGM",
|
||||
},
|
||||
},
|
||||
};
|
||||
const saved = database.putManastormConfig(gmAccount, 0, configured);
|
||||
assert.equal(saved.revision, 1);
|
||||
assert.equal(saved.config.global.affixesEnabled, false);
|
||||
assert.deepEqual(saved.config.dungeons.deadmines, {
|
||||
status: "not-ready",
|
||||
note: "The final door trigger needs fixing.",
|
||||
reviewedAt: saved.updatedAt,
|
||||
reviewedBy: "Phenom",
|
||||
});
|
||||
assert.equal(database.getManastormConfig().updatedBy, "Phenom");
|
||||
assert.throws(() => database.putManastormConfig(gmAccount, 0, configured), (error) => (
|
||||
error instanceof GameDatabaseError && error.status === 409
|
||||
|
||||
Reference in new issue
Block a user