Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nightnei committed Nov 14, 2024
1 parent 6d70937 commit ba2d200
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/tests/content-tab-sync.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe( 'ContentTabSync', () => {
openURL: jest.fn(),
generateProposedSitePath: jest.fn(),
showMessageBox: jest.fn(),
updateConnectedWpcomSites: jest.fn(),
} );
( useSyncSites as jest.Mock ).mockReturnValue( {
connectedSites: [],
Expand All @@ -38,6 +39,7 @@ describe( 'ContentTabSync', () => {
pullStates: {},
isAnySitePulling: false,
getPullState: jest.fn(),
refetchSites: jest.fn(),
} );
} );

Expand Down Expand Up @@ -106,6 +108,7 @@ describe( 'ContentTabSync', () => {
pullStates: {},
isAnySitePulling: false,
getPullState: jest.fn(),
refetchSites: jest.fn(),
} );
renderWithProvider( <ContentTabSync selectedSite={ selectedSite } /> );

Expand Down Expand Up @@ -133,6 +136,7 @@ describe( 'ContentTabSync', () => {
pullStates: {},
isAnySitePulling: false,
getPullState: jest.fn(),
refetchSites: jest.fn(),
} );
renderWithProvider( <ContentTabSync selectedSite={ selectedSite } /> );

Expand Down Expand Up @@ -169,6 +173,7 @@ describe( 'ContentTabSync', () => {
pullStates: {},
isAnySitePulling: false,
getPullState: jest.fn(),
refetchSites: jest.fn(),
} );
renderWithProvider( <ContentTabSync selectedSite={ selectedSite } /> );

Expand Down
1 change: 1 addition & 0 deletions src/components/tests/site-content-tabs.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
} ),
} ) );

Expand Down

0 comments on commit ba2d200

Please sign in to comment.