Commit 289ae894 authored by Robert Knight's avatar Robert Knight

Replace usage of removed `store.isSidebar` selector

parent affc79a9
...@@ -52,7 +52,7 @@ export default function Streamer( ...@@ -52,7 +52,7 @@ export default function Streamer(
break; break;
} }
if (!store.isSidebar()) { if (store.route() !== 'sidebar') {
applyPendingUpdates(); applyPendingUpdates();
} }
} }
......
...@@ -123,11 +123,11 @@ describe('Streamer', function() { ...@@ -123,11 +123,11 @@ describe('Streamer', function() {
userid: 'jim@hypothes.is', userid: 'jim@hypothes.is',
}, },
}), }),
isSidebar: sinon.stub().returns(true),
pendingUpdates: sinon.stub().returns({}), pendingUpdates: sinon.stub().returns({}),
pendingDeletions: sinon.stub().returns({}), pendingDeletions: sinon.stub().returns({}),
receiveRealTimeUpdates: sinon.stub(), receiveRealTimeUpdates: sinon.stub(),
removeAnnotations: sinon.stub(), removeAnnotations: sinon.stub(),
route: sinon.stub().returns('sidebar'),
}; };
fakeGroups = { fakeGroups = {
...@@ -275,7 +275,7 @@ describe('Streamer', function() { ...@@ -275,7 +275,7 @@ describe('Streamer', function() {
context('when the app is the stream', function() { context('when the app is the stream', function() {
beforeEach(function() { beforeEach(function() {
fakeStore.isSidebar.returns(false); fakeStore.route.returns('stream');
}); });
it('applies updates immediately', function() { it('applies updates immediately', function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment