Simplify git onAuth calls

This commit is contained in:
Alex Gleason committed 2025-09-21 17:42:16 -05:00
1 parent bc907fdd63
commit 154b9330d4
4 files changed
+11 -47

No files matched your search

+6 -6
View File
@@ -64,17 +64,17 @@ describe('gitCredentials', () => {
.toEqual({ username: 'git', password: 'github-token' });
});
it('should return null when no credentials found', () => {
it('should return undefined when no credentials found', () => {
expect(findCredentialsForRepo('https://unknown.com/user/repo.git', mockCredentials))
.toBe(null);
.toBe(undefined);
expect(findCredentialsForRepo('invalid-url', mockCredentials))
.toBe(null);
.toBe(undefined);
});
it('should return null for empty credentials', () => {
it('should return undefined for empty credentials', () => {
expect(findCredentialsForRepo('https://github.com/user/repo.git', {}))
.toBe(null);
.toBe(undefined);
});
});