Commit c3664e1d by Johannes Schill Committed by Daniel Lee

dashfolders: Update jest tests with backendSrv #10275

parent 5a9fe9af
......@@ -29,7 +29,7 @@ describe('FolderSettings', () => {
}
);
wrapper = shallow(<FolderSettings {...store} />);
wrapper = shallow(<FolderSettings backendSrv={backendSrv} {...store} />);
return wrapper
.dive()
.instance()
......
......@@ -20,7 +20,7 @@ describe('ServerStats', () => {
}
);
const page = renderer.create(<ServerStats {...store} />);
const page = renderer.create(<ServerStats backendSrv={backendSrv} {...store} />);
setTimeout(() => {
expect(page.toJSON()).toMatchSnapshot();
......
......@@ -8,8 +8,7 @@ const model = {
return new Promise((resolve, reject) => {});
},
},
refreshList: () => {},
teamId: '1',
handlePicked: () => {},
};
describe('UserPicker', () => {
......
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