diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-22 20:45:44 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-22 20:45:44 +0300 |
| commit | dd3fe61cf3cfcb1b41d1d34aa23ba99325d9dd56 (patch) | |
| tree | 1a2ab435107f473afb4924dec8ee95b1e86739e4 /test/unit/specs/services/html_converter | |
| parent | a2f21f4e131e03240699017ef92b7dba38c4fb44 (diff) | |
| parent | a258182522e85c31fe9dfbfbddf7a314ca36d0ca (diff) | |
Merge branch 'better-still-emoji' into proper-attachments
* better-still-emoji:
fix non-notifying mentions and original mention display
fix not escaping some stuff
fix rich images
Diffstat (limited to 'test/unit/specs/services/html_converter')
| -rw-r--r-- | test/unit/specs/services/html_converter/html_line_converter.spec.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/specs/services/html_converter/html_line_converter.spec.js b/test/unit/specs/services/html_converter/html_line_converter.spec.js index de7c7fc2..86bd7e8b 100644 --- a/test/unit/specs/services/html_converter/html_line_converter.spec.js +++ b/test/unit/specs/services/html_converter/html_line_converter.spec.js @@ -69,6 +69,13 @@ describe('html_line_converter', () => { const comparableResult = result.map(mapOnlyText(processorKeep)).join('') expect(comparableResult).to.eql(inputOutput) }) + + it('fed with some recognized but not handled elements', () => { + const inputOutput = 'testing images\n\n<img src="benis.png">' + const result = convertHtmlToLines(inputOutput) + const comparableResult = result.map(mapOnlyText(processorKeep)).join('') + expect(comparableResult).to.eql(inputOutput) + }) }) describe('with processor that replaces lines with word "_" should match expected line when', () => { const processorReplace = (line) => '_' |
