// config.cljs must resolve to exactly the constants the TS did.
import test from "node:test";
import assert from "node:assert/strict";
import { boot, vectors } from "./harness.mjs";
const { lib } = await boot();
const want = vectors("config");
test("the hub's constants are unchanged by the port", () => {
const got = lib.config();
assert.equal(got.APP_SALT, want.APP_SALT);
assert.equal(got.NS, want.NS, "NS is the slug of APP_SALT — the localStorage namespace of every store");
assert.equal(got.TURN_URL, want.TURN_URL);
assert.equal(got.AP2P_DESCRIPTOR_URL, want.AP2P_DESCRIPTOR_URL);
assert.deepEqual(JSON.parse(JSON.stringify(got.RELAY_FALLBACK)), want.RELAY_FALLBACK);
});