mirror of https://github.com/go-gitea/gitea.git
parent
a61014ea47
commit
ead716d204
@ -0,0 +1,7 @@
|
|||||||
|
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');
|
||||||
|
});
|
Loading…
Reference in New Issue