]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/helpers/markdown.ts
Fix live constraints tests
[github/Chocobozzz/PeerTube.git] / server / tests / helpers / markdown.ts
index 0488a1a055293c74af1268055da7142f8ea9f6e4..8177477f6c6888866e7438f87d2fe8f45d465035 100644 (file)
@@ -30,5 +30,11 @@ describe('Markdown helpers', function () {
 
       expect(result).to.equal('Hello coucou')
     })
+
+    it('Should convert tags to plain text', function () {
+      const result = mdToOneLinePlainText(`#déconversion\n#newage\n#histoire`)
+
+      expect(result).to.equal('#déconversion #newage #histoire')
+    })
   })
 })