diff options
Diffstat (limited to 'server/tests/helpers/markdown.ts')
-rw-r--r-- | server/tests/helpers/markdown.ts | 6 |
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 | }) |