Fix tests

This commit is contained in:
Alex Gleason committed 2025-12-25 00:14:22 -06:00
1 parent 2f2957435a
commit 39652a85ca
3 files changed
+16 -3

No files matched your search

+6 -3
View File
@@ -94,7 +94,8 @@ describe('useGit', () => {
nostr: mockNostr,
corsProxy: 'https://cors.isomorphic-git.org',
ngitServers: ['git.shakespeare.diy', 'relay.ngit.dev'],
onAuth: expect.any(Function),
credentials: [],
signer: undefined,
});
expect(result.current).toEqual({ git: expect.any(Object) });
});
@@ -109,7 +110,8 @@ describe('useGit', () => {
nostr: mockNostr,
corsProxy: 'https://custom-cors.example.com',
ngitServers: ['git.shakespeare.diy', 'relay.ngit.dev'],
onAuth: expect.any(Function),
credentials: [],
signer: undefined,
});
expect(result.current).toEqual({ git: expect.any(Object) });
});
@@ -124,7 +126,8 @@ describe('useGit', () => {
nostr: mockNostr,
corsProxy: 'https://cors.isomorphic-git.org',
ngitServers: ['git.shakespeare.diy', 'relay.ngit.dev'],
onAuth: expect.any(Function),
credentials: [],
signer: undefined,
});
// Rerender with a different wrapper (different CORS proxy)