Skip to content

Commit

Permalink
satisfy the linter for now
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilverstein committed Jan 13, 2025
1 parent 9861625 commit 15827a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual(
'rel_value noopener nofollow'
);
expect( result.rel ).toEqual( 'rel_value noopener nofollow' );
} );

it( 'should correctly update link attributes with opensInNewTab', () => {
Expand Down Expand Up @@ -106,9 +104,7 @@ describe( 'getUpdatedLinkAttributes method', () => {

expect( result.url ).toEqual( 'http://example.com' );
expect( result.linkTarget ).toEqual( '_blank' );
expect( result.rel ).toEqual(
'rel_value nofollow noopener'
);
expect( result.rel ).toEqual( 'rel_value nofollow noopener' );
} );

it( 'should correctly handle rel with existing new tab values and remove duplicates', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/categories/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default function CategoriesEdit( {
const { id, link, count, name } = category;
return (
<li key={ id } className={ `cat-item cat-item-${ id }` }>
<a href={ link } target="_blank" rel="noopener">
<a href={ link } target="_blank" rel="noopener noreferrer">
{ renderCategoryName( name ) }
</a>
{ showPostCounts && ` (${ count })` }
Expand Down

0 comments on commit 15827a2

Please sign in to comment.