equal
deleted
inserted
replaced
44 test("test function to format a tweet", function() { |
44 test("test function to format a tweet", function() { |
45 var input = "@handle @bundle #hashtag http://t.co/11111"; |
45 var input = "@handle @bundle #hashtag http://t.co/11111"; |
46 var output = "<a href='http://twitter.com/handle'>@handle</a> <a href='http://twitter.com/bundle'>@bundle</a> <a href='http://twitter.com/search?q=%23hashtag'>#hashtag</a> <a href='http://t.co/11111'>http://t.co/11111</a>"; |
46 var output = "<a href='http://twitter.com/handle'>@handle</a> <a href='http://twitter.com/bundle'>@bundle</a> <a href='http://twitter.com/search?q=%23hashtag'>#hashtag</a> <a href='http://t.co/11111'>http://t.co/11111</a>"; |
47 equal(IriSP.formatTweet(input), output, "the correct output is given"); |
47 equal(IriSP.formatTweet(input), output, "the correct output is given"); |
48 }); |
48 }); |
|
49 |
|
50 test("test function to convert decimal color to hexadecimal", function() { |
|
51 equal(IriSP.DEC_HEXA_COLOR(125), "7D", "first test passes"); |
|
52 equal(IriSP.DEC_HEXA_COLOR(24345), "5F19", "second test passes"); |
|
53 |
|
54 }); |
49 } |
55 } |