fix: use configured furni source and catalog assets

This commit is contained in:
Simo committed 2026-08-02 14:22:05 +02:00
1 parent aed70db81f
commit c78f8812ad
25 files changed
+368 -129

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from "vitest";
import { catalogueAssetUrl, catalogueIconUrl } from "@/lib/catalog-assets";
describe("catalogue asset URLs", () => {
it("uses the production gamedata mount for category icons", () => {
expect(catalogueIconUrl(7)).toBe("/gamedata/c_images/catalogue/icon_7.png");
});
it("encodes catalogue image names and supports both image formats", () => {
expect(catalogueAssetUrl("front page", "png")).toBe(
"/gamedata/c_images/catalogue/front%20page.png",
);
expect(catalogueAssetUrl("front page", "gif")).toBe(
"/gamedata/c_images/catalogue/front%20page.gif",
);
});
});