Destroy all globals
Well, not *all* globals..
This commit is contained in:
parent
c0681beca7
commit
fd3a72d435
7 changed files with 30 additions and 40 deletions
|
@ -1,9 +1,10 @@
|
|||
describe('MessageView', function() {
|
||||
var conversations = new Whisper.ConversationCollection();
|
||||
before(function(done) {
|
||||
Whisper.Conversations.fetch().then(done);
|
||||
conversations.fetch().then(done);
|
||||
});
|
||||
|
||||
var convo = Whisper.Conversations.add({id: 'foo'});
|
||||
var convo = conversations.add({id: 'foo'});
|
||||
var message = convo.messages().add({
|
||||
conversationId: convo.id,
|
||||
body: 'hello world',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue