--- 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