unittests/tests/utils.js
branchpopcorn-port
changeset 297 ed4a459c9290
parent 285 b7aa28af2c10
child 308 495ef0f3e483
--- a/unittests/tests/utils.js	Mon Nov 21 15:45:47 2011 +0100
+++ b/unittests/tests/utils.js	Mon Nov 21 16:20:16 2011 +0100
@@ -39,8 +39,8 @@
   });
   
   test("test function to format a tweet", function() {
-    var input = "@handle #hashtag ";
-    var output = "<a href='http://twitter.com/handle'>@handle</a> <a href='http://twitter.com/search?q=%23hashtag'>#hashtag</a> ";
+    var input = "@handle @bundle #hashtag http://t.co/11111";
+    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>";
     equal(IriSP.formatTweet(input), output, "the correct output is given");
   });
 }
\ No newline at end of file