mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix grasp tests
This commit is contained in:
2 files changed
+3
-5
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { Plus, X, Server } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Input } from '@/components/ui/input';
|
||||
@@ -10,7 +9,6 @@ import { useNostrPublish } from '@/hooks/useNostrPublish';
|
||||
import { toast } from '@/hooks/useToast';
|
||||
|
||||
export function GraspListManager() {
|
||||
const { t } = useTranslation();
|
||||
const { config, updateConfig } = useAppContext();
|
||||
const { user } = useCurrentUser();
|
||||
const { mutate: publishEvent } = useNostrPublish();
|
||||
|
||||
@@ -92,7 +92,7 @@ describe('useGit', () => {
|
||||
fs: mockFS,
|
||||
nostr: mockNostr,
|
||||
corsProxy: 'https://cors.isomorphic-git.org',
|
||||
graspMetadata: { relays: [{ url: 'wss://git.shakespeare.diy/' }, { url: 'wss://relay.ngit.dev/' }], updatedAt: 0 },
|
||||
ngitServers: ['git.shakespeare.diy', 'relay.ngit.dev'],
|
||||
});
|
||||
expect(result.current).toEqual({ git: expect.any(Object) });
|
||||
});
|
||||
@@ -106,7 +106,7 @@ describe('useGit', () => {
|
||||
fs: mockFS,
|
||||
nostr: mockNostr,
|
||||
corsProxy: 'https://custom-cors.example.com',
|
||||
graspMetadata: { relays: [{ url: 'wss://git.shakespeare.diy/' }, { url: 'wss://relay.ngit.dev/' }], updatedAt: 0 },
|
||||
ngitServers: ['git.shakespeare.diy', 'relay.ngit.dev'],
|
||||
});
|
||||
expect(result.current).toEqual({ git: expect.any(Object) });
|
||||
});
|
||||
@@ -120,7 +120,7 @@ describe('useGit', () => {
|
||||
fs: mockFS,
|
||||
nostr: mockNostr,
|
||||
corsProxy: 'https://cors.isomorphic-git.org',
|
||||
graspMetadata: { relays: [{ url: 'wss://git.shakespeare.diy/' }, { url: 'wss://relay.ngit.dev/' }], updatedAt: 0 },
|
||||
ngitServers: ['git.shakespeare.diy', 'relay.ngit.dev'],
|
||||
});
|
||||
|
||||
// Rerender with a different wrapper (different CORS proxy)
|
||||
|
||||
Reference in new issue
Block a user