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', () => {
beforeEach(() => {
fakeStore = {
clearAnnotations: sinon.stub(),
getState: sinon.stub().returns({}),
highlightAnnotations: sinon.stub(),
routeParams: sinon.stub().returns({ id: 'test_annotation_id' }),
profile: sinon.stub().returns({ userid: null }),
......
......@@ -17,11 +17,6 @@ describe('SidebarPanel', () => {
fakeScrollIntoView = sinon.stub();
fakeStore = {
getState: sinon.stub().returns({
sidebarPanels: {
activePanelName: null,
},
}),
isSidebarPanelOpen: sinon.stub().returns(false),
toggleSidebarPanel: sinon.stub(),
};
......
......@@ -30,7 +30,6 @@ describe('StreamView', () => {
annotationFetchStarted: sinon.stub(),
annotationFetchFinished: sinon.stub(),
clearAnnotations: sinon.spy(),
getState: sinon.stub().returns({}),
routeParams: sinon.stub().returns({ id: 'test' }),
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