diff --git a/src/components/tests/content-tab-sync.test.tsx b/src/components/tests/content-tab-sync.test.tsx index d469cb46..a5c2e3b7 100644 --- a/src/components/tests/content-tab-sync.test.tsx +++ b/src/components/tests/content-tab-sync.test.tsx @@ -30,6 +30,7 @@ describe( 'ContentTabSync', () => { openURL: jest.fn(), generateProposedSitePath: jest.fn(), showMessageBox: jest.fn(), + updateConnectedWpcomSites: jest.fn(), } ); ( useSyncSites as jest.Mock ).mockReturnValue( { connectedSites: [], @@ -38,6 +39,7 @@ describe( 'ContentTabSync', () => { pullStates: {}, isAnySitePulling: false, getPullState: jest.fn(), + refetchSites: jest.fn(), } ); } ); @@ -106,6 +108,7 @@ describe( 'ContentTabSync', () => { pullStates: {}, isAnySitePulling: false, getPullState: jest.fn(), + refetchSites: jest.fn(), } ); renderWithProvider( ); @@ -133,6 +136,7 @@ describe( 'ContentTabSync', () => { pullStates: {}, isAnySitePulling: false, getPullState: jest.fn(), + refetchSites: jest.fn(), } ); renderWithProvider( ); @@ -169,6 +173,7 @@ describe( 'ContentTabSync', () => { pullStates: {}, isAnySitePulling: false, getPullState: jest.fn(), + refetchSites: jest.fn(), } ); renderWithProvider( ); diff --git a/src/components/tests/site-content-tabs.test.tsx b/src/components/tests/site-content-tabs.test.tsx index 9650ab78..bb395e0b 100644 --- a/src/components/tests/site-content-tabs.test.tsx +++ b/src/components/tests/site-content-tabs.test.tsx @@ -33,6 +33,7 @@ jest.mock( '../../lib/get-ipc-api', () => ( { ...jest.requireActual( '../../lib/get-ipc-api' ), getIpcApi: jest.fn().mockReturnValue( { getConnectedWpcomSites: jest.fn().mockResolvedValue( [] ), + updateConnectedWpcomSites: jest.fn(), } ), } ) );