From c3664e1d87a123b5e467070a758f9a5044cca00c Mon Sep 17 00:00:00 2001 From: Johannes Schill Date: Wed, 17 Jan 2018 17:05:21 +0100 Subject: [PATCH] dashfolders: Update jest tests with backendSrv #10275 --- public/app/containers/ManageDashboards/FolderSettings.jest.tsx | 2 +- public/app/containers/ServerStats/ServerStats.jest.tsx | 2 +- public/app/core/components/UserPicker/UserPicker.jest.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public/app/containers/ManageDashboards/FolderSettings.jest.tsx b/public/app/containers/ManageDashboards/FolderSettings.jest.tsx index 5bd9e642d51..3355b657f03 100644 --- a/public/app/containers/ManageDashboards/FolderSettings.jest.tsx +++ b/public/app/containers/ManageDashboards/FolderSettings.jest.tsx @@ -29,7 +29,7 @@ describe('FolderSettings', () => { } ); - wrapper = shallow(); + wrapper = shallow(); return wrapper .dive() .instance() diff --git a/public/app/containers/ServerStats/ServerStats.jest.tsx b/public/app/containers/ServerStats/ServerStats.jest.tsx index ae5cb736ad6..a329a47527d 100644 --- a/public/app/containers/ServerStats/ServerStats.jest.tsx +++ b/public/app/containers/ServerStats/ServerStats.jest.tsx @@ -20,7 +20,7 @@ describe('ServerStats', () => { } ); - const page = renderer.create(); + const page = renderer.create(); setTimeout(() => { expect(page.toJSON()).toMatchSnapshot(); diff --git a/public/app/core/components/UserPicker/UserPicker.jest.tsx b/public/app/core/components/UserPicker/UserPicker.jest.tsx index 0e3c672dcbe..756fa2d9801 100644 --- a/public/app/core/components/UserPicker/UserPicker.jest.tsx +++ b/public/app/core/components/UserPicker/UserPicker.jest.tsx @@ -8,8 +8,7 @@ const model = { return new Promise((resolve, reject) => {}); }, }, - refreshList: () => {}, - teamId: '1', + handlePicked: () => {}, }; describe('UserPicker', () => {