Update message view test
This commit is contained in:
parent
cb89ac1071
commit
245dc5b248
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
describe('MessageView', function() {
|
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',
|
body: 'hello world',
|
||||||
type: 'outgoing',
|
type: 'outgoing',
|
||||||
timestamp: new Date().getTime()
|
timestamp: new Date().getTime()
|
||||||
|
|
Loading…
Reference in a new issue