-
Notifications
You must be signed in to change notification settings - Fork 137
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 #793 from FitseTLT/fix-sms-domain-in-htmlToText
Fix - Remove sms domain in htmlToText
- Loading branch information
Showing
2 changed files
with
5 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -160,6 +160,10 @@ test('Mention user html to text', () => { | |
|
||
testString = '<mention-user accountID="1234" />'; | ||
expect(parser.htmlToText(testString, extras)).toBe('@[email protected]'); | ||
|
||
extras.accountIDToName['1234'] = '[email protected]'; | ||
testString = '<mention-user accountID="1234"/>'; | ||
expect(parser.htmlToText(testString, extras)).toBe('@+251924892738'); | ||
}); | ||
|
||
test('Mention report html to text', () => { | ||
|
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