Skip to content

Commit

Permalink
Remove useless unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 10, 2024
1 parent 6d81094 commit b995c53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
17 changes: 0 additions & 17 deletions packages/editor/src/components/post-slug/test/check.js

This file was deleted.

6 changes: 5 additions & 1 deletion packages/editor/src/components/post-slug/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ describe( 'PostSlug', () => {

useSelect.mockImplementation( ( mapSelect ) =>
mapSelect( () => ( {
getPostType: () => null,
getPostType: () => ( {
supports: {
slug: true,
},
} ),
getEditedPostAttribute: () => 'post',
getEditedPostSlug: () => '1',
} ) )
Expand Down

0 comments on commit b995c53

Please sign in to comment.