mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-01 12:26:07 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user