Skip to content

Commit

Permalink
Merge pull request #132 from Nuzhy-Deriv/nuzhy/update-telegram
Browse files Browse the repository at this point in the history
Nuzhy/DAPI-756/update telegram link
  • Loading branch information
prince-deriv authored Sep 25, 2024
2 parents e43396c + eee29b5 commit 25e82cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/Footer/__tests__/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ describe('Footer Component', () => {
render(<Footer />);
const telegramButton = screen.getByText(/Telegram/);
fireEvent.click(telegramButton);
expect(window.open).toHaveBeenCalledWith('https://t.me/derivdotcomofficial', '_blank');
expect(window.open).toHaveBeenCalledWith('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
});

it('opens respective email in a new tab when email button is clicked', () => {
window.open = jest.fn();
render(<Footer />);
const emailButton = screen.getByText(/Send an email/);
expect(emailButton).toBeInTheDocument();
fireEvent.click(emailButton);
expect(window.open).toHaveBeenCalledWith('mailto:[email protected]', '_blank');
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Footer = () => {
variant='outlined'
className={styles.PaddedButton}
onClick={() => {
window.open('https://t.me/derivdotcomofficial', '_blank');
window.open('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
}}
>
<SocialTelegramBlackIcon fill='#000000' iconSize='xs' />
Expand Down

0 comments on commit 25e82cd

Please sign in to comment.