Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/swarm-ui/test/account-kind.test.mjs

16 lines
705 B
JavaScript

// The word the linked-accounts list uses for an account kind. Run by `npm
// test`, which Node runs with its built-in test runner and type stripping,
// so the `.ts` module is imported as it is.
import assert from "node:assert/strict";
import { test } from "node:test";
import { accountKindLabel } from "../src/agent/detail/account-kind.ts";
test("a forgejo account is called a forge account, like the link menu does", () => {
assert.equal(accountKindLabel("forgejo"), "forge");
});
test("the other kinds keep their names", () => {
assert.equal(accountKindLabel("matrix"), "matrix");
assert.equal(accountKindLabel("github"), "github");
assert.equal(accountKindLabel("backend"), "backend");
});