Destroy all globals

Well, not *all* globals..
This commit is contained in:
lilia 2014-11-16 16:01:28 -08:00
parent c0681beca7
commit fd3a72d435
7 changed files with 30 additions and 40 deletions

View file

@ -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',