Commit 39d6e181 authored by Kyle Keating's avatar Kyle Keating Committed by Robert Knight

Fix test warnings from missing prop

The ThreadList component has a required felid  `threads` but its value was undefined in tests. The value comes from the mocked version of `useRootThread.children`
parent bc8ddf96
...@@ -27,7 +27,9 @@ describe('AnnotationView', () => { ...@@ -27,7 +27,9 @@ describe('AnnotationView', () => {
fakeOnLogin = sinon.stub(); fakeOnLogin = sinon.stub();
fakeUseRootThread = sinon.stub().returns({}); fakeUseRootThread = sinon.stub().returns({
children: [],
});
$imports.$mock(mockImportedComponents()); $imports.$mock(mockImportedComponents());
$imports.$mock({ $imports.$mock({
......
...@@ -34,7 +34,9 @@ describe('SidebarView', () => { ...@@ -34,7 +34,9 @@ describe('SidebarView', () => {
fakeLoadAnnotationsService = { fakeLoadAnnotationsService = {
load: sinon.stub(), load: sinon.stub(),
}; };
fakeUseRootThread = sinon.stub().returns({}); fakeUseRootThread = sinon.stub().returns({
children: [],
});
fakeStreamer = { fakeStreamer = {
connect: sinon.stub(), connect: sinon.stub(),
}; };
......
...@@ -17,7 +17,9 @@ describe('StreamView', () => { ...@@ -17,7 +17,9 @@ describe('StreamView', () => {
search: sinon.stub().resolves({ rows: [], replies: [], total: 0 }), search: sinon.stub().resolves({ rows: [], replies: [], total: 0 }),
}; };
fakeUseRootThread = sinon.stub().returns({}); fakeUseRootThread = sinon.stub().returns({
children: [],
});
fakeSearchFilter = { fakeSearchFilter = {
toObject: sinon.stub().returns({}), toObject: sinon.stub().returns({}),
......
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