Skip to content

Commit eee29b5

Browse files
committed
fix: update telegram link in test
1 parent 6c552a1 commit eee29b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Footer/__tests__/Footer.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ describe('Footer Component', () => {
2121
render(<Footer />);
2222
const telegramButton = screen.getByText(/Telegram/);
2323
fireEvent.click(telegramButton);
24-
expect(window.open).toHaveBeenCalledWith('https://t.me/derivdotcomofficial', '_blank');
24+
expect(window.open).toHaveBeenCalledWith('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
2525
});
2626

2727
it('opens respective email in a new tab when email button is clicked', () => {
2828
window.open = jest.fn();
2929
render(<Footer />);
3030
const emailButton = screen.getByText(/Send an email/);
31+
expect(emailButton).toBeInTheDocument();
3132
fireEvent.click(emailButton);
3233
expect(window.open).toHaveBeenCalledWith('mailto:api-support@deriv.com', '_blank');
3334
});

0 commit comments

Comments
 (0)