feat(mcp): подготовить сервер и доступ к приёмке
This commit is contained in:
commit
bf3d50e1ff
3835 files changed
+537122
No files matched your search
@@ -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), /не подтверждено сервером/)
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user