FEAT - BIM CONVERTER: поддержка IGES через Ops

This commit is contained in:
CODEX
2026-07-29 17:56:01 +03:00
parent 1a78dd0dc8
commit c102fa9929
6 changed files with 161 additions and 27 deletions
+21
View File
@@ -0,0 +1,21 @@
import assert from "node:assert/strict";
import test from "node:test";
import {CONVERTIBLE_MODEL_FORMATS, conversionQueuedMessage} from "./cad-formats.js";
test("routes STEP and IGES filename variants to canonical converter formats", () => {
assert.deepEqual(
Object.fromEntries(CONVERTIBLE_MODEL_FORMATS),
{
".step": "step",
".stp": "step",
".iges": "iges",
".igs": "iges"
}
);
});
test("conversion message names the canonical source format", () => {
assert.match(conversionQueuedMessage("iges"), /IGES/);
assert.match(conversionQueuedMessage("step"), /STEP/);
});