Skip to content

Commit

Permalink
Additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jun 2, 2021
1 parent cc95217 commit 4e4d38f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/editor/src/utils/test/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( '' );
} );
Expand Down

0 comments on commit 4e4d38f

Please sign in to comment.