Fix order-dependent failure of stream_view_spec.js

This spec was only passing when it was run after another spec (router_spec.js) that put `app.page` in an appropriate state.
This commit is contained in:
Sage Ross 2022-01-02 11:59:00 -08:00 committed by Benjamin Neff
parent 058090afe7
commit 0831d4e294
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -1,5 +1,8 @@
describe("app.views.Stream", function() {
beforeEach(function() {
// This puts `app.page` into the proper state.
new app.Router().stream();
loginAs({name: "alice", avatar : {small : "http://avatar.com/photo.jpg"}});
this.posts = $.parseJSON(spec.readFixture("stream_json"));