Release Healer Man 0.1.5
This commit is contained in:
1 parent
f4c9cf356c
commit
55cfd43d66
62 files changed
+3030
-153
No files matched your search
@@ -7,6 +7,7 @@ import {
|
||||
listCharacters,
|
||||
loadCombatPresentationSettings,
|
||||
loginLocalAccount,
|
||||
restoreSession,
|
||||
updateCharacterActionBindings,
|
||||
updateCharacterEquipment,
|
||||
updateCharacterInventory,
|
||||
@@ -86,6 +87,17 @@ describe("local profile repository", () => {
|
||||
expect(listCharacters("offline-roster", storage)).toEqual([]);
|
||||
});
|
||||
|
||||
it("drops spoofed GM roles from offline sessions", () => {
|
||||
const storage = new MemoryStorage();
|
||||
storage.setItem(PROFILE_STORAGE_KEYS.session, JSON.stringify({
|
||||
kind: "offline",
|
||||
ownerId: "offline-roster",
|
||||
displayName: "Offline",
|
||||
roles: ["gm"],
|
||||
}));
|
||||
expect(restoreSession(storage)?.roles).toEqual([]);
|
||||
});
|
||||
|
||||
it("normalizes legacy profiles and persists progression atomically", () => {
|
||||
const storage = new MemoryStorage();
|
||||
storage.setItem(PROFILE_STORAGE_KEYS.database, JSON.stringify({
|
||||
|
||||
Reference in new issue
Block a user