forked from phenom/healer-man
Update Healer Man server
This commit is contained in:
1 parent
6114a2295f
commit
69809f7228
593 files changed
+903643
-40774
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { Document } from "@gltf-transform/core";
|
||||
import test from "node:test";
|
||||
import { applyRunewakerVisualUvAdaptations, listRunewakerVisualUvAdaptationPolicies } from "./lib/rom-visual-uv-adaptations.mjs";
|
||||
|
||||
test("unsafe whole-atlas repeat is no longer an opt-in UV policy", () => {
|
||||
assert.deepEqual(listRunewakerVisualUvAdaptationPolicies(), []);
|
||||
assert.throws(() => applyRunewakerVisualUvAdaptations(new Document(), {
|
||||
dungeonId: "barren-caves",
|
||||
policyIds: ["rom-barren-caves-wretched-tunnel-repeat-x4"],
|
||||
}), /Unknown RoM visual UV adaptation policy/);
|
||||
});
|
||||
|
||||
test("UV adaptation remains unchanged without an explicit UV policy", () => {
|
||||
const document = new Document();
|
||||
const report = applyRunewakerVisualUvAdaptations(document, { dungeonId: "paspers-shrine" });
|
||||
assert.equal(report.status, "no-policy");
|
||||
assert.equal(document.getRoot().listMaterials().length, 0);
|
||||
assert.equal(document.getRoot().listExtensionsUsed().length, 0);
|
||||
});
|
||||
Reference in new issue
Block a user