-
Notifications
You must be signed in to change notification settings - Fork 80
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 #513 from zenn-dev/feat-disable-fuzzyEmail
fuzzyEmail を無効にする
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 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 |
---|---|---|
|
@@ -28,6 +28,14 @@ describe('LinkCard埋め込み要素のテスト', () => { | |
expect(html).toContain('URLが不正です'); | ||
}); | ||
}); | ||
|
||
describe('メールアドレス', () => { | ||
test('メールアドレスのまま出力する', () => { | ||
const html = markdownToHtml(`[email protected]`); | ||
expect(html).toContain('[email protected]'); | ||
expect(html).not.toContain('URLが不正です'); | ||
}); | ||
}); | ||
}); | ||
|
||
describe('embedOriginを設定している場合', () => { | ||
|
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