Skip to content
Prev Previous commit
Next Next commit
Add unit test for cleanForSlug
  • Loading branch information
earnjam committed Nov 19, 2018
commit 5584199383bb84224de925677b623662990618f5
10 changes: 10 additions & 0 deletions packages/editor/src/utils/test/url.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Internal dependencies
*/
import { cleanForSlug } from '../url';

describe( 'cleanForSlug()', () => {
it( 'Should return string prepared for use as url slug', () => {
expect( cleanForSlug( ' /Déjà_vu. ' ) ).toBe( 'deja-vu' );
} );
} );