Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

649 B
Raw Blame
import { browserProfileDeletedKey } from "./browser-profiles";
const TEAM = "00000000-0000-4000-8000-000000000001";
const OTHER_TEAM = "00000000-0000-4000-8000-000000000002";
describe("browserProfileDeletedKey", () => {
  it("isolates teams and preserves names containing separators", () => {
    expect(browserProfileDeletedKey(TEAM, "login")).not.toBe(
      browserProfileDeletedKey(OTHER_TEAM, "login"),
    );
    expect(browserProfileDeletedKey("a_b", "c")).not.toBe(
      browserProfileDeletedKey("a", "b_c"),
    );
    expect(browserProfileDeletedKey(TEAM, "a/b c")).not.toBe(
      browserProfileDeletedKey(TEAM, "a/b"),
    );
  });
});