Rename createTemporary
to dangerouslyCreateAndAdd
Class: `ConversationController`. This function should not be used in application code as it creates potentially invalid `Conversation` instances in our global conversation collection. We keep making it available for testing purposes.
This commit is contained in:
parent
4e6d1e128f
commit
83c979fb84
4 changed files with 14 additions and 7 deletions
|
@ -2,7 +2,7 @@ describe('MessageView', function() {
|
|||
var convo, message;
|
||||
|
||||
before(function() {
|
||||
convo = ConversationController.createTemporary({id: 'foo'});
|
||||
convo = ConversationController.dangerouslyCreateAndAdd({id: 'foo'});
|
||||
message = convo.messageCollection.add({
|
||||
conversationId: convo.id,
|
||||
body: 'hello world',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue