mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix tests
This commit is contained in:
3 files changed
+16
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user