diff -r 2c65775623cb -r 6252f951d11c unittests/tests/utils.js
--- a/unittests/tests/utils.js Fri Nov 18 16:26:52 2011 +0100
+++ b/unittests/tests/utils.js Mon Nov 21 10:51:42 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