Avoid dangerouslyCreateAndAdd
in MessageView
test
This commit is contained in:
@@ -2,7 +2,7 @@ describe('MessageView', function() {
|
|||||||
var convo, message;
|
var convo, message;
|
||||||
|
|
||||||
before(function() {
|
before(function() {
|
||||||
convo = ConversationController.dangerouslyCreateAndAdd({id: 'foo'});
|
convo = new Whisper.Conversation({id: 'foo'});
|
||||||
message = convo.messageCollection.add({
|
message = convo.messageCollection.add({
|
||||||
conversationId: convo.id,
|
conversationId: convo.id,
|
||||||
body: 'hello world',
|
body: 'hello world',
|
||||||
|
Reference in New Issue
Block a user