13 lines · 604 B · TypeScript
RawDownload
import { describe, expect, it } from "vite-plus/test"; import { openOnHostLabel } from "./pullRequestLinkContextMenu"; describe("pull request link context menu", () => {  it("names every host it knows, and says nothing false about one it does not", () => {    expect(openOnHostLabel("github")).toBe("Open on GitHub");    expect(openOnHostLabel("gitlab")).toBe("Open on GitLab");    expect(openOnHostLabel("bitbucket")).toBe("Open on Bitbucket");    expect(openOnHostLabel("azure-devops")).toBe("Open on Azure DevOps");    expect(openOnHostLabel("something-else")).toBe("Open on host");  });});

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