Skip to content

Commit

Permalink
Remove custom implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-t committed Jan 2, 2024
1 parent bb04f68 commit a064794
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions __mocks__/@wordpress/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ const lib = jest.requireActual( '@wordpress/url' );

const wordpressURL = {
...lib,
isURL: jest
.fn()
.mockImplementation(
( url ) =>
lib.isURL( url ) || url === '#banner-notification-cta-link'
),
isURL: jest.fn( lib.isURL ),
};

module.exports = wordpressURL;

0 comments on commit a064794

Please sign in to comment.