diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-08 11:28:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-08 11:28:32 +0100 |
commit | 7b51ede977c299a74728171d8c124bcc4cbba6ea (patch) | |
tree | ad189d2ed1f987e2053201166af4e953c46529f5 /server/tests/helpers/markdown.ts | |
parent | ab4b8974997777373a6032073f9c1aaf33ba9931 (diff) | |
parent | 70f3012acd239be4567d9d9fa0364be75485ad1c (diff) | |
download | PeerTube-7b51ede977c299a74728171d8c124bcc4cbba6ea.tar.gz PeerTube-7b51ede977c299a74728171d8c124bcc4cbba6ea.tar.zst PeerTube-7b51ede977c299a74728171d8c124bcc4cbba6ea.zip |
Merge branch 'release/4.1.0' into develop
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 | }) |