mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
420 B
8 lines
420 B
4 days ago
|
import {substituteRepoOpenWithUrl} from './repo-common.ts';
|
||
|
|
||
|
test('substituteRepoOpenWithUrl', () => {
|
||
|
// For example: "x-github-client://openRepo/https://github.com/go-gitea/gitea"
|
||
|
expect(substituteRepoOpenWithUrl('proto://a/{url}', 'https://gitea')).toEqual('proto://a/https://gitea');
|
||
|
expect(substituteRepoOpenWithUrl('proto://a?link={url}', 'https://gitea')).toEqual('proto://a?link=https%3A%2F%2Fgitea');
|
||
|
});
|