File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ defmodule M51.FormatTest do
159
159
assert M51.Format . matrix2irc ( ~s( <img/>) ) == ""
160
160
end
161
161
162
- test "Matrix link to IRC (404 on well-known" do
162
+ test "Matrix link to IRC (404 on well-known) " do
163
163
MockHTTPoison
164
164
|> expect ( :get! , 1 , fn url ->
165
165
assert url == "https://example.org/.well-known/matrix/client"
@@ -219,6 +219,12 @@ defmodule M51.FormatTest do
219
219
"mentioning <a href=\" https://matrix.to/#/@user:example.org\" >user</a>"
220
220
) == "mentioning user:example.org"
221
221
222
+ # Fails because mochiweb_html drops the space, see:
223
+ # https://github.com/mochi/mochiweb/issues/166
224
+ # assert M51.Format.matrix2irc(
225
+ # "mentioning <a href=\"https://matrix.to/#/@user1:example.org\">user1</a> <a href=\"https://matrix.to/#/@user2:example.org\">user2</a>"
226
+ # ) == "mentioning user1:example.org user2:example.org"
227
+
222
228
# Correct format according to the spec:
223
229
assert M51.Format . matrix2irc (
224
230
"mentioning <a href=\" https://matrix.to/#/%40correctlyencoded%3Aexample.org\" >correctly encoded user</a>"
You can’t perform that action at this time.
0 commit comments