social-kit / test / selftest.test.mjs
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
// The "./selftest" export must keep working: run it end to end (it exercises
// canon, envelopes, pair channels, friend folds, profile sync and receipts
// itself; it installs its own in-memory localStorage shim under node).
import test from "node:test";
import assert from "node:assert/strict";
import { runSocialKitSelfTest } from "../dist/selftest.js";

test("runSocialKitSelfTest passes against dist", async () => {
  await assert.doesNotReject(() => runSocialKitSelfTest());
});

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/social-kit.git