Commit 801b3fa8 authored by Robert Knight's avatar Robert Knight

Remove unused `store.getState` stubs in tests

All of the components use selector methods now instead of accessing the
store's internal state directly.
parent 0e523df3
...@@ -14,7 +14,6 @@ describe('AnnotationView', () => { ...@@ -14,7 +14,6 @@ describe('AnnotationView', () => {
beforeEach(() => { beforeEach(() => {
fakeStore = { fakeStore = {
clearAnnotations: sinon.stub(), clearAnnotations: sinon.stub(),
getState: sinon.stub().returns({}),
highlightAnnotations: sinon.stub(), highlightAnnotations: sinon.stub(),
routeParams: sinon.stub().returns({ id: 'test_annotation_id' }), routeParams: sinon.stub().returns({ id: 'test_annotation_id' }),
profile: sinon.stub().returns({ userid: null }), profile: sinon.stub().returns({ userid: null }),
......
...@@ -17,11 +17,6 @@ describe('SidebarPanel', () => { ...@@ -17,11 +17,6 @@ describe('SidebarPanel', () => {
fakeScrollIntoView = sinon.stub(); fakeScrollIntoView = sinon.stub();
fakeStore = { fakeStore = {
getState: sinon.stub().returns({
sidebarPanels: {
activePanelName: null,
},
}),
isSidebarPanelOpen: sinon.stub().returns(false), isSidebarPanelOpen: sinon.stub().returns(false),
toggleSidebarPanel: sinon.stub(), toggleSidebarPanel: sinon.stub(),
}; };
......
...@@ -30,7 +30,6 @@ describe('StreamView', () => { ...@@ -30,7 +30,6 @@ describe('StreamView', () => {
annotationFetchStarted: sinon.stub(), annotationFetchStarted: sinon.stub(),
annotationFetchFinished: sinon.stub(), annotationFetchFinished: sinon.stub(),
clearAnnotations: sinon.spy(), clearAnnotations: sinon.spy(),
getState: sinon.stub().returns({}),
routeParams: sinon.stub().returns({ id: 'test' }), routeParams: sinon.stub().returns({ id: 'test' }),
setSortKey: sinon.spy(), setSortKey: sinon.spy(),
}; };
......
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