Release Healer Man 0.1.32

This commit is contained in:
phenom committed 2026-09-12 11:07:25 -04:00
1 parent d3d6aaebdb
commit 6dcb1034e5
102 files changed
+10772 -788

No files matched your search

+26 -8
View File
@@ -6,6 +6,14 @@ const content = vi.hoisted(() => ({
installed: true,
update: true,
bundled: false,
packs: [{
id: "characters:test",
label: "Test Characters",
bytes: 1024,
fileCount: 1,
bundledOnAndroid: false,
dependencies: [],
}],
install: vi.fn(async () => undefined),
remove: vi.fn(async () => undefined),
}));
@@ -29,14 +37,7 @@ vi.mock("../content/useContentManager", () => ({
checking: false,
manifest: {
version: "content-test",
packs: [{
id: "characters:test",
label: "Test Characters",
bytes: 1024,
fileCount: 1,
bundledOnAndroid: false,
dependencies: [],
}],
packs: content.packs,
},
bundledManifest: null,
installingPackId: null,
@@ -61,6 +62,10 @@ describe("browser Downloads actions", () => {
content.installed = true;
content.update = true;
content.bundled = false;
content.packs = [{
id: "characters:test", label: "Test Characters", bytes: 1024,
fileCount: 1, bundledOnAndroid: false, dependencies: [],
}];
});
it("offers an update action when an installed browser pack has changed", () => {
@@ -92,4 +97,17 @@ describe("browser Downloads actions", () => {
expect(markup).toContain("Included — always available");
expect(markup).not.toContain(">Remove</button>");
});
it("hides shelved and internal dependency packs from Downloads", () => {
content.packs = [
...content.packs,
{ id: "core:arenas", label: "Rated Arenas", bytes: 1, fileCount: 1, bundledOnAndroid: false, dependencies: [] },
{ id: "manastorm:deadmines", label: "Deadmines Manastorm", bytes: 1, fileCount: 1, bundledOnAndroid: false, dependencies: [] },
];
const markup = renderToStaticMarkup(createElement(ContentManagerScreen, { onClose: () => undefined }));
expect(markup).toContain("Test Characters");
expect(markup).not.toContain("Rated Arenas");
expect(markup).not.toContain("Deadmines Manastorm");
});
});