diff -r cbb17aa3361c -r b7aa28af2c10 unittests/tests/utils.js --- a/unittests/tests/utils.js Mon Nov 21 10:17:54 2011 +0100 +++ b/unittests/tests/utils.js Mon Nov 21 10:51:22 2011 +0100 @@ -37,4 +37,10 @@ t = -t; deepEqual(IriSP.secondsToTime(t), {"hours" : h, "minutes" : m, "seconds" : s}, "the function is immune to negative numbers."); }); + + test("test function to format a tweet", function() { + var input = "@handle #hashtag "; + var output = "@handle #hashtag "; + equal(IriSP.formatTweet(input), output, "the correct output is given"); + }); } \ No newline at end of file