From a2abfe38a4a9a869477f6b287c2e77b7442031c2 Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 26 May 2015 13:43:54 -0700 Subject: [PATCH] Fix tests --- test/views/message_view_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/views/message_view_test.js b/test/views/message_view_test.js index 9a105986..00f34856 100644 --- a/test/views/message_view_test.js +++ b/test/views/message_view_test.js @@ -25,15 +25,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}); + message.set({'sent_at': new Date().getTime() - 5000}); view.render(); assert.match(view.$el.html(), /seconds ago/); - message.set({'received_at': new Date().getTime() - 60000}); + message.set({'sent_at': new Date().getTime() - 60000}); view.render(); assert.match(view.$el.html(), /minute ago/); - message.set({'received_at': new Date().getTime() - 3600000}); + message.set({'sent_at': new Date().getTime() - 3600000}); view.render(); assert.match(view.$el.html(), /hour ago/); });