Initial Commit
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { describe, expect, it } from "@suaveplan/testing/runner";
|
||||
import * as audit from "../src/index.js";
|
||||
|
||||
describe("@suaveplan/network-plugin-audit-mesh public surface", () => {
|
||||
it("exports every documented class", () => {
|
||||
expect(audit.SignedLog).toBeDefined();
|
||||
expect(audit.LogReplicator).toBeDefined();
|
||||
expect(audit.LogRetriever).toBeDefined();
|
||||
expect(audit.IntegrityChecker).toBeDefined();
|
||||
expect(audit.ConflictResolver).toBeDefined();
|
||||
expect(audit.LogCompaction).toBeDefined();
|
||||
expect(audit.AuditMeshPlugin).toBeDefined();
|
||||
});
|
||||
|
||||
it("exports the error registry", () => {
|
||||
expect(audit.NETWORK_AUDIT_CODES).toBeDefined();
|
||||
expect(audit.NetworkAuditError).toBeDefined();
|
||||
});
|
||||
|
||||
it("exports helper functions", () => {
|
||||
expect(typeof audit.bytesToHex).toBe("function");
|
||||
expect(typeof audit.entryHashBytes).toBe("function");
|
||||
expect(typeof audit.entryDigestHex).toBe("function");
|
||||
expect(typeof audit.checkpointSigningBytes).toBe("function");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user