Skip to content

Commit a5dd0d3

Browse files
committed
fix js tests
1 parent 920567f commit a5dd0d3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

projects/packages/forms/tests/js/dashboard/components/empty-spam-button/index.test.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ await jest.unstable_mockModule( '@wordpress/data', () => {
9494
getSpamCount: jest.fn().mockReturnValue( 1 ),
9595
getTrashCount: jest.fn().mockReturnValue( 0 ),
9696
getInvalidRecords: jest.fn().mockReturnValue( new Set() ),
97+
hasPendingActions: jest.fn().mockReturnValue( false ),
9798
};
9899

99100
return {

projects/packages/forms/tests/js/dashboard/components/empty-trash-button/index.test.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ await jest.unstable_mockModule( '@wordpress/data', () => {
9494
getSpamCount: jest.fn().mockReturnValue( 0 ),
9595
getTrashCount: jest.fn().mockReturnValue( 1 ),
9696
getInvalidRecords: jest.fn().mockReturnValue( new Set() ),
97+
hasPendingActions: jest.fn().mockReturnValue( false ),
9798
};
9899

99100
return {

0 commit comments

Comments
 (0)