forked from phenom/healer-man
Release Healer Man 0.1.29
This commit is contained in:
1 parent
8c9809d3e0
commit
544c1bee91
120 files changed
+4363
-1036
No files matched your search
@@ -212,7 +212,7 @@ describe("local profile repository", () => {
|
||||
}));
|
||||
expect(loadCombatPresentationSettings("offline-roster", storage))
|
||||
.toEqual(DEFAULT_COMBAT_PRESENTATION_SETTINGS);
|
||||
expect(JSON.parse(storage.getItem(PROFILE_STORAGE_KEYS.database)!).version).toBe(5);
|
||||
expect(JSON.parse(storage.getItem(PROFILE_STORAGE_KEYS.database)!).version).toBe(6);
|
||||
}
|
||||
|
||||
const legacyV3Storage = new MemoryStorage();
|
||||
@@ -231,13 +231,13 @@ describe("local profile repository", () => {
|
||||
},
|
||||
}));
|
||||
expect(loadCombatPresentationSettings("offline-roster", legacyV3Storage)).toMatchObject({
|
||||
vfxMode: "generated",
|
||||
vfxMode: "original",
|
||||
vfxQuality: "low",
|
||||
});
|
||||
expect(JSON.parse(legacyV3Storage.getItem(PROFILE_STORAGE_KEYS.database)!)
|
||||
.presentationSettingsByOwner["offline-roster"].vfxMode).toBe("generated");
|
||||
.presentationSettingsByOwner["offline-roster"].vfxMode).toBe("original");
|
||||
expect(JSON.parse(legacyV3Storage.getItem(PROFILE_STORAGE_KEYS.database)!)
|
||||
.presentationSettingsByOwner["offline-roster"].originalMediaEnabled).toBe(false);
|
||||
.presentationSettingsByOwner["offline-roster"].originalMediaEnabled).toBe(true);
|
||||
|
||||
const storage = new MemoryStorage();
|
||||
const firstOwner = (await createLocalAccount("EffectsOne", "eight-plus", storage)).session!.ownerId;
|
||||
@@ -258,6 +258,37 @@ describe("local profile repository", () => {
|
||||
.toEqual(DEFAULT_COMBAT_PRESENTATION_SETTINGS);
|
||||
});
|
||||
|
||||
it("migrates the previous media default once while preserving combat controls", () => {
|
||||
const storage = new MemoryStorage();
|
||||
storage.setItem(PROFILE_STORAGE_KEYS.database, JSON.stringify({
|
||||
version: 5,
|
||||
accounts: [],
|
||||
rosters: { "offline-roster": [] },
|
||||
presentationSettingsByOwner: {
|
||||
"offline-roster": {
|
||||
...DEFAULT_COMBAT_PRESENTATION_SETTINGS,
|
||||
originalMediaEnabled: false,
|
||||
vfxMode: "generated",
|
||||
vfxQuality: "low",
|
||||
audioEnabled: { player: true, party: false, enemy: true },
|
||||
},
|
||||
},
|
||||
}));
|
||||
expect(loadCombatPresentationSettings("offline-roster", storage)).toMatchObject({
|
||||
originalMediaEnabled: true,
|
||||
vfxMode: "original",
|
||||
vfxQuality: "low",
|
||||
audioEnabled: { player: true, party: false, enemy: true },
|
||||
});
|
||||
updateCombatPresentationSettings("offline-roster", {
|
||||
...DEFAULT_COMBAT_PRESENTATION_SETTINGS,
|
||||
originalMediaEnabled: false, vfxMode: "generated",
|
||||
}, storage);
|
||||
expect(loadCombatPresentationSettings("offline-roster", storage)).toMatchObject({
|
||||
originalMediaEnabled: false, vfxMode: "generated",
|
||||
});
|
||||
});
|
||||
|
||||
it("migrates custom-class profiles into the CoA category", () => {
|
||||
const storage = new MemoryStorage();
|
||||
const offline = createOfflineSession();
|
||||
|
||||
Reference in new issue
Block a user