mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
dashfolders: Update jest tests with backendSrv #10275
This commit is contained in:
parent
5a9fe9aff9
commit
c3664e1d87
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user