FIX - TASKER BIM ROUTING: production endpoint и CAD-форматы Ops
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import {
|
||||
DEFAULT_BEAM_VIEWER_BASE_URL,
|
||||
getBeamDirectModelTypeFromFileName,
|
||||
getBeamModelTypeFromFileName,
|
||||
// @ts-expect-error Node's strip-types test runner requires the explicit TypeScript extension.
|
||||
} from "./beam-viewer-config.ts";
|
||||
|
||||
test("routes STEP and IGES variants through the converter", () => {
|
||||
assert.equal(getBeamModelTypeFromFileName("model.step"), "step");
|
||||
assert.equal(getBeamModelTypeFromFileName("model.STP"), "step");
|
||||
assert.equal(getBeamModelTypeFromFileName("model.iges"), "iges");
|
||||
assert.equal(getBeamModelTypeFromFileName("model.IGS"), "iges");
|
||||
assert.equal(getBeamDirectModelTypeFromFileName("model.igs"), null);
|
||||
});
|
||||
|
||||
test("uses the production BIM service when build args are absent", () => {
|
||||
assert.equal(DEFAULT_BEAM_VIEWER_BASE_URL, "https://bim.nodedc.tech");
|
||||
});
|
||||
Reference in New Issue
Block a user