We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3e34c commit 96a24a4Copy full SHA for 96a24a4
1 file changed
test/unit/shared/utils/git-providers.spec.ts
@@ -6,6 +6,10 @@ import {
6
} from '#shared/utils/git-providers'
7
8
describe('normalizeGitUrl', () => {
9
+ it('should return null for empty input', () => {
10
+ expect.soft(normalizeGitUrl('')).toBeNull()
11
+ })
12
+
13
it('should leave plain HTTPS URLs unchanged', () => {
14
expect
15
.soft(normalizeGitUrl('https://github.com/user/repo'))
@@ -52,7 +56,7 @@ describe('normalizeGitUrl', () => {
52
56
.toBe('https://github.com/user/repo')
53
57
})
54
58
55
- it('should convert git@github.com SSH format', () => {
59
+ it('should convert SSH format to https://', () => {
60
expect.soft(normalizeGitUrl('git@github.com:user/repo')).toBe('https://github.com/user/repo')
61
62
.soft(normalizeGitUrl('git@github.com:user/repo.git'))
0 commit comments