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:
Sage Ross 2022-01-15 10:21:54 -08:00 committed by Benjamin Neff
parent 4e4d332d6e
commit b195861483
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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});