aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-07 11:48:53 +0100
committerChocobozzz <me@florianbigard.com>2022-03-07 11:48:53 +0100
commit2f19481147b12e2ae503ed3d1f28621c94447ac3 (patch)
tree6a5d1ab08432d0653b2391f67726e5d0c71ace65 /server/tests
parent907ba7e270b78507a8d9b6aa20da0f6231c37d25 (diff)
downloadPeerTube-2f19481147b12e2ae503ed3d1f28621c94447ac3.tar.gz
PeerTube-2f19481147b12e2ae503ed3d1f28621c94447ac3.tar.zst
PeerTube-2f19481147b12e2ae503ed3d1f28621c94447ac3.zip
Optimize markdown renderer
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/helpers/markdown.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/tests/helpers/markdown.ts b/server/tests/helpers/markdown.ts
index 0488a1a05..8177477f6 100644
--- a/server/tests/helpers/markdown.ts
+++ b/server/tests/helpers/markdown.ts
@@ -30,5 +30,11 @@ describe('Markdown helpers', function () {
30 30
31 expect(result).to.equal('Hello coucou') 31 expect(result).to.equal('Hello coucou')
32 }) 32 })
33
34 it('Should convert tags to plain text', function () {
35 const result = mdToOneLinePlainText(`#déconversion\n#newage\n#histoire`)
36
37 expect(result).to.equal('#déconversion #newage #histoire')
38 })
33 }) 39 })
34}) 40})