14 lines
591 B
TypeScript
14 lines
591 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { CLAUDECRAFT_WEAPON_CATALOG } from "../game/weaponCatalog";
|
|
import { characterEquipmentAssetUrl, characterEquipmentAssetUrls } from "./CharacterEquipmentAssets";
|
|
|
|
describe("Claudecraft runtime weapon URLs", () => {
|
|
it("resolves every catalog entry to one emitted GLB URL", () => {
|
|
const urls = characterEquipmentAssetUrls();
|
|
expect(Object.keys(urls)).toHaveLength(55);
|
|
for (const definition of CLAUDECRAFT_WEAPON_CATALOG) {
|
|
expect(characterEquipmentAssetUrl(definition.id)).toMatch(/\.glb(?:\?|$)/);
|
|
}
|
|
});
|
|
});
|