Fix tests
This commit is contained in:
parent
006653ed8e
commit
1a4811fcef
3 changed files with 16 additions and 10 deletions
|
@ -89,7 +89,13 @@
|
|||
before(function(done) {
|
||||
var convo = new Whisper.ConversationCollection().add(attributes);
|
||||
convo.save().then(function() {
|
||||
var message = convo.messageCollection.add({body: 'hello world', conversationId: convo.id});
|
||||
var message = convo.messageCollection.add({
|
||||
body : 'hello world',
|
||||
conversationId : convo.id,
|
||||
type : 'outgoing',
|
||||
sent_at : Date.now(),
|
||||
received_at : Date.now()
|
||||
});
|
||||
message.save().then(done)
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue