From fc6c8c0f3ed9402aaa61699015b1199204099759 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 5 Mar 2015 16:51:53 -0800 Subject: [PATCH] Fix tests --- test/views/message_view_test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/views/message_view_test.js b/test/views/message_view_test.js index bc40926d..f099016b 100644 --- a/test/views/message_view_test.js +++ b/test/views/message_view_test.js @@ -26,12 +26,15 @@ describe('MessageView', function() { it('should have a nice timestamp', function() { var view = new Whisper.MessageView({model: message}); message.set({'received_at': new Date().getTime() - 5000}); + view.render(); assert.match(view.$el.html(), /seconds ago/); message.set({'received_at': new Date().getTime() - 60000}); + view.render(); assert.match(view.$el.html(), /minute ago/); message.set({'received_at': new Date().getTime() - 3600000}); + view.render(); assert.match(view.$el.html(), /hour ago/); });