home / client / test / social-share.test.mjs
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
// presenceLabel: the room they offer beats the app they idle in.
import test from "node:test";
import assert from "node:assert/strict";
import { boot, vectors } from "./harness.mjs";

const { lib } = await boot();
const v = vectors("presence-label");

test("SUITE_APPS is the table the fixture was recorded against", async () => {
  const kit = await import("ardegazu-social-kit");
  assert.deepEqual(JSON.parse(JSON.stringify(kit.SUITE_APPS)), v.SUITE_APPS);
});

test("presenceLabel over every recorded case", () => {
  v.script.forEach((info, i) => {
    assert.equal(lib.presenceLabel(info), v.out[i], `case ${i}: ${JSON.stringify(info)}`);
  });
});

static mirror of HEAD · about · clone: git clone https://git.ardegazu.ro/home.git