Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jeff
pleroma
Commits
8a67677d
Commit
8a67677d
authored
6 years ago
by
rinpatch
Browse files
Options
Downloads
Patches
Plain Diff
Add test
parent
ef318fb8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/formatter_test.exs
+12
-0
12 additions, 0 deletions
test/formatter_test.exs
with
12 additions
and
0 deletions
test/formatter_test.exs
+
12
−
0
View file @
8a67677d
...
...
@@ -22,6 +22,18 @@ defmodule Pleroma.FormatterTest do
assert
expected_text
==
Formatter
.
add_hashtag_links
({[],
text
},
tags
)
|>
Formatter
.
finalize
()
end
test
"does not turn html characters to tags"
do
text
=
"Fact #3: pleroma does what mastodon't"
expected_text
=
"Fact <a data-tag=
\"
3
\"
href=
\"
http://localhost:4001/tag/3
\"
>#3</a>: pleroma does what mastodon't"
tags
=
Formatter
.
parse_tags
(
text
)
assert
expected_text
==
Formatter
.
add_hashtag_links
({[],
text
},
tags
)
|>
Formatter
.
finalize
()
end
end
describe
".add_links"
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment