Fix jasmine fake publisher messing with follow up tests in random order
This commit is contained in:
parent
cb774d1c50
commit
e5b65f6498
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue