mirror of https://github.com/go-gitea/gitea.git
8 lines
420 B
TypeScript
8 lines
420 B
TypeScript
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');
|
|
});
|