X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fhelpers%2Fmarkdown.ts;h=8177477f6c6888866e7438f87d2fe8f45d465035;hb=9295c68b74fe1f1e2e9f72009205d7f0379844c5;hp=0488a1a055293c74af1268055da7142f8ea9f6e4;hpb=c68e2b2d223c57836e04e18105255cf0e10ae75b;p=github%2FChocobozzz%2FPeerTube.git 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 () { 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') + }) }) })