Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/projects/render-utils.test.ts
2500 views
1
/**
2
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import { toRemoteURL } from "./render-utils";
8
9
test("parse clone URL", () => {
10
expect(toRemoteURL("https://gitlab.com/laushinka/my-node-project")).toEqual("gitlab.com/laushinka/my-node-project");
11
expect(toRemoteURL("https://gitlab.gitlab.gitpod.io/test-group/test-project")).toEqual(
12
"gitlab.gitlab.gitpod.io/test-group/test-project",
13
);
14
});
15
16