feat(mcp): подготовить сервер и доступ к приёмке

This commit is contained in:
Denozordec committed 2026-11-03 03:12:03 +07:00
commit bf3d50e1ff
3835 files changed
+537122

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import assert from "node:assert/strict"
import { test } from "node:test"
import { confirmEvoBgpConnection } from "./evobgp-test-receipt"
test("only explicit true confirms the connection", () => {
assert.doesNotThrow(() => confirmEvoBgpConnection({ ok: true }))
for (const raw of [null, {}, { ok: false }, { ok: 1 }, { ok: "true" }, []]) {
assert.throws(() => confirmEvoBgpConnection(raw), /не подтверждено сервером/)
}
})