test(git): Update gitHubArchive test to use HEAD instead of main

Update the test expectation to reflect the change from hardcoded 'main'
branch to using HEAD for the repository's default branch.
This commit is contained in:
Kazuki Yamada
2025-08-25 00:51:50 +09:00
parent bea8df18bb
commit d5c5cd8bdc
+2 -2
View File
@@ -242,9 +242,9 @@ describe('gitHubArchive', () => {
createWriteStream: mockCreateWriteStream,
});
// Should try main branch first, then master branch
// Should try HEAD first, then master branch
expect(mockFetch).toHaveBeenCalledWith(
'https://github.com/yamadashy/repomix/archive/refs/heads/main.zip',
'https://github.com/yamadashy/repomix/archive/HEAD.zip',
expect.any(Object),
);
expect(mockFetch).toHaveBeenCalledWith(