diff --git a/src/__tests__/Navbar/NavigationMenu.test.tsx b/src/__tests__/Navbar/NavigationMenu.test.tsx index 2d4b061e..d0fbeb32 100644 --- a/src/__tests__/Navbar/NavigationMenu.test.tsx +++ b/src/__tests__/Navbar/NavigationMenu.test.tsx @@ -1,17 +1,20 @@ import React from 'react'; import { render } from '@testing-library/react'; import TestContext from '../components/TestContext'; -import NavigationMenu from '../../pages/components/Navbar/NavigationMenu'; +import NavigationOptions from '../../pages/components/Navbar/NavigationOptions'; import { navigationLinks } from '../../shared/constants/navigationLinks'; -describe('NavigationMenu', () => { - it('renders the navigation menu', async () => { +describe('NavigationOptions', () => { + it('renders the navigation options', async () => { const { findByText } = render( - + ); await Promise.all(navigationLinks.map(async ({ label }) => await findByText(label))); + const igboSpeechLabel = "IgboSpeech"; + const label = await findByText(igboSpeechLabel); + expect(label).toHaveProperty('href', 'https://speech.igboapi.com/'); }); }); diff --git a/src/pages/components/Navbar/__tests__/NavigationOptions.test.tsx b/src/pages/components/Navbar/__tests__/NavigationOptions.test.tsx index f8c6122f..666737ee 100644 --- a/src/pages/components/Navbar/__tests__/NavigationOptions.test.tsx +++ b/src/pages/components/Navbar/__tests__/NavigationOptions.test.tsx @@ -17,5 +17,6 @@ describe('NavigationOptions', () => { await findByText('Docs'); await findByText('Research'); await findByText('Log In'); + await findByText('IgboSpeech'); }); }); diff --git a/src/shared/constants/navigationLinks.ts b/src/shared/constants/navigationLinks.ts index 93230073..a7e082a1 100644 --- a/src/shared/constants/navigationLinks.ts +++ b/src/shared/constants/navigationLinks.ts @@ -16,6 +16,10 @@ export const navigationLinks: { href: string, label: string }[] = [ href: 'https://huggingface.co/nkowaokwu', label: 'Research', }, + { + href: 'https://speech.igboapi.com', + label: 'IgboSpeech', + }, { href: '/signup', label: 'Log In',