23 lines · 839 B · TypeScript
RawDownload
import { describe, expect, it } from "vite-plus/test"; import { projectGroupTitleNeedsUpdate } from "./ProjectSettingsPanel.logic"; describe("projectGroupTitleNeedsUpdate", () => {  it("updates divergent member titles even when the next title is the derived group label", () => {    expect(      projectGroupTitleNeedsUpdate(["local-title", "remote-title"], "Repository name", true),    ).toBe(true);  });   it("skips an untouched blur when the derived label differs from member titles", () => {    expect(projectGroupTitleNeedsUpdate(["repo-slug", "repo-slug"], "Repository Name", false)).toBe(      false,    );  });   it("skips an update when every member already has the next title", () => {    expect(projectGroupTitleNeedsUpdate(["Shared name", "Shared name"], "Shared name", true)).toBe(      false,    );  });});

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