Skip to content

Commit

Permalink
Fix convertToNavigationLinksTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lende committed Jan 9, 2023
1 parent 7d0f14b commit 9ea0f3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Internal dependencies
*/

import { convertToNavigationLinks } from '../convert-to-navigation-links';
import { convertToNavigationLinks } from '../use-convert-to-navigation-links';

// Mock createBlock to avoid creating the blocks in test environment
// as convertToNavigationLinks calls this method internally.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createBlock } from '@wordpress/blocks';
import { useSelect, useDispatch } from '@wordpress/data';
import { store as blockEditorStore } from '@wordpress/block-editor';

function convertToNavigationLinks( pages = [] ) {
export function convertToNavigationLinks( pages = [] ) {
const linkMap = {};
const navigationLinks = [];
pages.forEach( ( { id, title, link: url, type, parent } ) => {
Expand Down

0 comments on commit 9ea0f3c

Please sign in to comment.