/* Unit tests for node covering dht/node. It also guards the documented public contract and regression-sensitive edge cases. Not a contract source of truth — the module under test owns the authoritative behavior; fixtures are minimal scaffolding only. Fixtures stay inline and minimal so each case states its own setup. RFC-1311: Compass header sweep — declares the node suite's contract for test-file scaffold coverage. */ // @ai-invariant fixtures must not couple to kernel internals beyond the public surface under test import { test, expect, describe } from "vitest"; import * as mod from "../node.ts"; describe("dht/node", () => { test("module loads successfully", () => { expect(mod).toBeDefined(); }); test("exports createDhtNode", () => { expect(typeof mod.createDhtNode).toBe("function"); }); test("exports generateSybilResistantNodeId", () => { expect(typeof mod.generateSybilResistantNodeId).toBe("function"); }); });