Skip to content

Commit

Permalink
Remove title escaping test. Now done at point of output.
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed May 19, 2022
1 parent dfc35c7 commit 28eda09
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions packages/block-library/src/navigation-link/test/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,26 +372,6 @@ describe( 'edit', () => {
url: 'https://wordpress.org',
} );
} );
// https://github.com/WordPress/gutenberg/pull/18617
it( 'label is javascript escaped', () => {
const setAttributes = jest.fn();
const linkSuggestion = {
opensInNewTab: false,
title: '<Navigation />',
type: 'URL',
url: 'https://wordpress.local?p=1',
};
updateNavigationLinkBlockAttributes(
linkSuggestion,
setAttributes
);
expect( setAttributes ).toHaveBeenCalledWith( {
opensInNewTab: false,
label: '&lt;Navigation /&gt;',
kind: 'custom',
url: 'https://wordpress.local?p=1',
} );
} );
// https://github.com/WordPress/gutenberg/pull/19679
it( 'url when escaped is still an actual link', () => {
const setAttributes = jest.fn();
Expand Down

0 comments on commit 28eda09

Please sign in to comment.