import { slugifyTitle } from '.'; test('Convert regular issue title to branch name (slugify).', () => { expect(slugifyTitle('Sanitize branch name')).toEqual('sanitize-branch-name'); }); test('Convert issue title with ` to branch name (slugify).', () => { expect( slugifyTitle( 'Implement flag props like `nopaddings` and `nomargins` on text components', ), ).toEqual( 'implement-flag-props-like-nopaddings-and-nomargins-on-text-components', ); }); test('Convert issue title with brackets to branch name (slugify).', () => { expect(slugifyTitle('Some random title (with some extra words)')).toEqual( 'some-random-title-with-some-extra-words', ); }); test('Convert issue title with " to branch name (slugify).', () => { expect( slugifyTitle('Remove "Evaluation active" from round navigation items'), ).toEqual('remove-evaluation-active-from-round-navigation-items'); });