Skip to content

Commit 96a24a4

Browse files
committed
test: handle reviews
1 parent bf3e34c commit 96a24a4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/unit/shared/utils/git-providers.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import {
66
} from '#shared/utils/git-providers'
77

88
describe('normalizeGitUrl', () => {
9+
it('should return null for empty input', () => {
10+
expect.soft(normalizeGitUrl('')).toBeNull()
11+
})
12+
913
it('should leave plain HTTPS URLs unchanged', () => {
1014
expect
1115
.soft(normalizeGitUrl('https://github.com/user/repo'))
@@ -52,7 +56,7 @@ describe('normalizeGitUrl', () => {
5256
.toBe('https://github.com/user/repo')
5357
})
5458

55-
it('should convert git@github.com SSH format', () => {
59+
it('should convert SSH format to https://', () => {
5660
expect.soft(normalizeGitUrl('git@github.com:user/repo')).toBe('https://github.com/user/repo')
5761
expect
5862
.soft(normalizeGitUrl('git@github.com:user/repo.git'))

0 commit comments

Comments
 (0)