Fix jasmine fake publisher messing with follow up tests in random order

This commit is contained in:
Benjamin Neff 2022-06-19 04:22:10 +02:00
parent cb774d1c50
commit e5b65f6498
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# 0.7.18.0 # 0.7.18.0
## Refactor ## Refactor
* Fix order-dependent jasmine test failures and switch to random order [#8333](https://github.com/diaspora/diaspora/pull/8333)
## Bug fixes ## Bug fixes

View file

@ -179,6 +179,7 @@ describe('app.Router', function () {
app.publisher = { jasmineTestValue: 42 }; app.publisher = { jasmineTestValue: 42 };
app.router._initializeStreamView(); app.router._initializeStreamView();
expect(app.publisher.jasmineTestValue).toEqual(42); expect(app.publisher.jasmineTestValue).toEqual(42);
delete app.publisher; // don't leave fake publisher around
}); });
it("doesn't set app.publisher if there is no publisher element in page", function() { it("doesn't set app.publisher if there is no publisher element in page", function() {