14 lines
604 B
TypeScript
14 lines
604 B
TypeScript
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");
|
|
});
|
|
});
|