From 91130cbd898c5ebbea10f5a4f08ba40e98a8a990 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 21 Dec 2025 01:06:11 -0600 Subject: [PATCH] Fix grasp tests --- src/components/GraspListManager.tsx | 2 -- src/hooks/useGit.test.ts | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/GraspListManager.tsx b/src/components/GraspListManager.tsx index 8c92e388..31b13642 100644 --- a/src/components/GraspListManager.tsx +++ b/src/components/GraspListManager.tsx @@ -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(); diff --git a/src/hooks/useGit.test.ts b/src/hooks/useGit.test.ts index 14b97a09..e70e3a80 100644 --- a/src/hooks/useGit.test.ts +++ b/src/hooks/useGit.test.ts @@ -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)