-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is not needed anymore since absolute urls are supported. Also added an extra test for `mailto:` urls
- Loading branch information
Showing
2 changed files
with
8 additions
and
23 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
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 |
---|---|---|
|
@@ -135,6 +135,12 @@ describe('Invalid hrefs', () => { | |
const $ = cheerio.load(await res.text()) | ||
expect($('#click-me').attr('href')).toBe('https://') | ||
}) | ||
|
||
it('renders a link with mailto: href', async () => { | ||
const res = await fetchViaHTTP(appPort, '/first') | ||
const $ = cheerio.load(await res.text()) | ||
expect($('#click-me').attr('href')).toBe('mailto:[email protected]') | ||
}) | ||
}) | ||
|
||
describe('dev mode', () => { | ||
|