diff --git a/src/components/Header/__tests__/Header.test.tsx b/src/components/Header/__tests__/Header.test.tsx new file mode 100644 index 00000000..c5c717f6 --- /dev/null +++ b/src/components/Header/__tests__/Header.test.tsx @@ -0,0 +1,16 @@ +import React from 'react'; +import { Header } from '..'; +import { render, screen } from '@testing-library/react'; + +describe('Header', () => { + it('should be able to render the header with links', () => { + render(
); + const deriv_website_link = screen.getByText('Deriv website'); + const who_we_are_link = screen.getByText('Who we are'); + const contact_us_link = screen.getByText('Contact us'); + + expect(deriv_website_link).toBeVisible(); + expect(who_we_are_link).toBeVisible(); + expect(contact_us_link).toBeVisible(); + }); +});