diff --git a/packages/editor/src/utils/test/url.js b/packages/editor/src/utils/test/url.js index ffe0568bbc502f..085f90a8c09617 100644 --- a/packages/editor/src/utils/test/url.js +++ b/packages/editor/src/utils/test/url.js @@ -8,6 +8,10 @@ describe( 'cleanForSlug()', () => { expect( cleanForSlug( '/Is th@t Déjà_vu? ' ) ).toBe( 'is-tht-deja_vu' ); } ); + it( 'Should allow unicode characters', () => { + expect( cleanForSlug( 'Καλημέρα Κόσμε' ) ).toBe( 'καλημέρα-κόσμε' ) + } ); + it( 'Should return an empty string for missing argument', () => { expect( cleanForSlug() ).toBe( '' ); } );