MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / user

Function user

apps/ui/src/lib/users/display-name.test.ts:7–18  ·  view source on GitHub ↗
(overrides: Partial<IUser> = {})

Source from the content-addressed store, hash-verified

5import { displayName } from "./display-name";
6
7function user(overrides: Partial<IUser> = {}): IUser {
8 return {
9 id: "u1",
10 email: "person@example.com",
11 firstName: "",
12 lastName: "",
13 emailVerified: true,
14 createdAt: "2026-01-01",
15 updatedAt: "2026-01-01",
16 ...overrides
17 };
18}
19
20describe("displayName", () => {
21 it("returns first + last when both are set", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected