Rhys Sullivanfmtc92c57d6 months agoHistory
17 lines · 731 B · TypeScript
RawDownload
import { describe, expect, it } from "@effect/vitest"; import { normalizeNamespaceInput, slugifyNamespace } from "../packages/react/src/plugins/namespace"; describe("source identity namespace helpers", () => {  it("preserves underscores while the user is typing", () => {    expect(normalizeNamespaceInput("archil_useast1")).toBe("archil_useast1");    expect(normalizeNamespaceInput("archil_")).toBe("archil_");    expect(normalizeNamespaceInput("_archil")).toBe("_archil");  });   it("canonicalizes the saved namespace", () => {    expect(slugifyNamespace("archil_")).toBe("archil");    expect(slugifyNamespace("_archil")).toBe("archil");    expect(slugifyNamespace("Archil USEast1")).toBe("archil_useast1");  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t