fix: initialisation for git updated

This commit is contained in:
2026-02-16 11:15:02 +01:00
parent 2e27df0d63
commit 0230010515
2 changed files with 26 additions and 1 deletions

View File

@@ -289,6 +289,13 @@ describe('GitEngine', () => {
expect(result).toEqual({ success: true });
expect(mockInit).toHaveBeenCalled();
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'install', '--local']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.webp']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.heif']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.tiff']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.bmp']);
expect(mockRaw).toHaveBeenCalledWith(['lfs', 'track', '*.ico']);
expect(mockAdd).toHaveBeenNthCalledWith(1, ['posts', 'media', 'meta', '.gitattributes']);
expect(mockAdd).toHaveBeenNthCalledWith(2, ['--renormalize', 'posts', 'media', 'meta', '.gitattributes']);
expect(mockCommit).toHaveBeenCalledWith('initial commit');
expect(mockAddRemote).not.toHaveBeenCalled();
});