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', () => {
fakeOnLogin = sinon.stub();
fakeUseRootThread = sinon.stub().returns({});
fakeUseRootThread = sinon.stub().returns({
children: [],
});
$imports.$mock(mockImportedComponents());
$imports.$mock({
......
......@@ -34,7 +34,9 @@ describe('SidebarView', () => {
fakeLoadAnnotationsService = {
load: sinon.stub(),
};
fakeUseRootThread = sinon.stub().returns({});
fakeUseRootThread = sinon.stub().returns({
children: [],
});
fakeStreamer = {
connect: sinon.stub(),
};
......
......@@ -17,7 +17,9 @@ describe('StreamView', () => {
search: sinon.stub().resolves({ rows: [], replies: [], total: 0 }),
};
fakeUseRootThread = sinon.stub().returns({});
fakeUseRootThread = sinon.stub().returns({
children: [],
});
fakeSearchFilter = {
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