Skip to content

Commit

Permalink
bugdown: Add tests for avatar/gravatar syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
timabbott authored and kkanahin committed Oct 19, 2016
1 parent 0784c4b commit a046b3d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zerver/fixtures/bugdown-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@
"expected_output": "<p><code>!modal_link(#settings, Settings page)</code></p>",
"bugdown_matches_marked": true
},
{
"name": "avatar",
"input": "!avatar([email protected])",
"expected_output": "<p><img alt=\"[email protected]\" class=\"message_body_gravatar\" src=\"/avatar/[email protected]?s=30\" title=\"[email protected]\"></p>",
"bugdown_matches_marked": false
},
{
"name": "gravatar",
"input": "!gravatar([email protected])",
"expected_output": "<p><img alt=\"[email protected]\" class=\"message_body_gravatar\" src=\"/avatar/[email protected]?s=30\" title=\"[email protected]\"></p>",
"bugdown_matches_marked": false
},
{
"name": "avatar_escaped",
"input": "`!avatar([email protected])`",
Expand Down

0 comments on commit a046b3d

Please sign in to comment.