dashfolders: Update jest tests with backendSrv #10275

This commit is contained in:
Johannes Schill 2018-01-17 17:05:21 +01:00 committed by Daniel Lee
parent 5a9fe9aff9
commit c3664e1d87
3 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,7 @@ describe('FolderSettings', () => {
}
);
wrapper = shallow(<FolderSettings {...store} />);
wrapper = shallow(<FolderSettings backendSrv={backendSrv} {...store} />);
return wrapper
.dive()
.instance()

View File

@ -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();

View File

@ -8,8 +8,7 @@ const model = {
return new Promise((resolve, reject) => {});
},
},
refreshList: () => {},
teamId: '1',
handlePicked: () => {},
};
describe('UserPicker', () => {