Skip to content
Newer
Older
100644 19 lines (17 sloc) 795 Bytes
4cb08c8 Add readme and sample files
Matt Sanford authored
1
2 tests:
3 usernames:
4 - description: "Autolink trailing username"
5 text: "text @username"
6 expected: "text @<a class=\"tweet-url username\" href=\"http://twitter.com/username\">username</a>"
7 lists:
8 - description: "Autolink trailing list"
9 text: "text @username/list"
10 expected: "text @<a class=\"tweet-url list-slug\" href=\"http://twitter.com/username/list\">username/list</a>"
11 urls:
12 - description: "Autolink trailing url"
13 text: "text http://example.com"
14 expected: "text <a href=\"http://example.com\">http://example.com</a>"
15 hashtags:
16 - description: "Autolink trailing hashtag"
17 text: "text #hashtag"
18 expected: "text <a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
Something went wrong with that request. Please try again.