From 245dc5b248560e2a62498b7534c4382d85cda43a Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 29 Oct 2014 12:53:54 -0700 Subject: [PATCH] Update message view test --- test/views/message_view_test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/views/message_view_test.js b/test/views/message_view_test.js index f75032e7..ddca1a33 100644 --- a/test/views/message_view_test.js +++ b/test/views/message_view_test.js @@ -1,5 +1,7 @@ describe('MessageView', function() { - var message = Whisper.Messages.add({ + var thread = Whisper.Threads.add({id: 'foo'}); + var message = thread.messages().add({ + threadId: thread.id, body: 'hello world', type: 'outgoing', timestamp: new Date().getTime()