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()