Fix order-dependent failures in notification_dropdown_view_spec.js
These tests were failing because of an error thrown from `this.header.render()`, unless `head_view_spec.js` had already been run to set app.notificationsCollection.
This commit is contained in:
parent
4e4d332d6e
commit
b195861483
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ describe("app.views.NotificationDropdown", function() {
|
|||
this.header = new app.views.Header();
|
||||
$("header").prepend(this.header.el);
|
||||
loginAs({guid: "foo"});
|
||||
app.notificationsCollection = new app.collections.Notifications();
|
||||
this.header.render();
|
||||
this.collection = new app.collections.Notifications();
|
||||
this.view = new app.views.NotificationDropdown({el: "#notification-dropdown", collection: this.collection});
|
||||
|
|
|
|||
Loading…
Reference in a new issue