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(
break;
}
if (!store.isSidebar()) {
if (store.route() !== 'sidebar') {
applyPendingUpdates();
}
}
......
......@@ -123,11 +123,11 @@ describe('Streamer', function() {
userid: 'jim@hypothes.is',
},
}),
isSidebar: sinon.stub().returns(true),
pendingUpdates: sinon.stub().returns({}),
pendingDeletions: sinon.stub().returns({}),
receiveRealTimeUpdates: sinon.stub(),
removeAnnotations: sinon.stub(),
route: sinon.stub().returns('sidebar'),
};
fakeGroups = {
......@@ -275,7 +275,7 @@ describe('Streamer', function() {
context('when the app is the stream', function() {
beforeEach(function() {
fakeStore.isSidebar.returns(false);
fakeStore.route.returns('stream');
});
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