Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import { openOnHostLabel } from "./pullRequestLinkContextMenu";
4
5describe("pull request link context menu", () => {
6 it("names every host it knows, and says nothing false about one it does not", () => {
7 expect(openOnHostLabel("github")).toBe("Open on GitHub");
8 expect(openOnHostLabel("gitlab")).toBe("Open on GitLab");
9 expect(openOnHostLabel("bitbucket")).toBe("Open on Bitbucket");
10 expect(openOnHostLabel("azure-devops")).toBe("Open on Azure DevOps");
11 expect(openOnHostLabel("something-else")).toBe("Open on host");
12 });
13});