More order-dependent Jasmine test fixes

This commit is contained in:
Sage Ross 2022-01-15 15:32:37 -08:00 committed by Benjamin Neff
parent 23c2487550
commit baeeee8e73
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 2 additions and 1 deletions

View file

@ -81,6 +81,7 @@ describe('app.Router', function () {
describe("aspects", function() {
it("calls _initializeStreamView", function() {
new app.models.Stream();
app.publisher = new app.views.Publisher({standalone: true});
spyOn(app.router, "_initializeStreamView");
app.router.aspects();
expect(app.router._initializeStreamView).toHaveBeenCalled();

View file

@ -199,7 +199,7 @@ describe("app.views.Publisher", function() {
describe("createStatusMessage", function(){
it("adds the status message to the stream", function() {
new app.models.Stream();
app.stream = new app.models.Stream();
spyOn(app.stream, "addNow");
this.view.createStatusMessage($.Event());