-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from Nuzhy-Deriv/nuzhy/update-telegram
Nuzhy/DAPI-756/update telegram link
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters