How to use the @inkline/inkline/src/helpers/slugify.slugify function in @inkline/inkline

To help you get started, we’ve selected a few @inkline/inkline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github inkline / inkline / tests / unit / helpers / slugify.spec.js View on Github external
it('should remove dash from end of text', () => {
            expect(slugify('abc-')).toEqual('abc');
        });
    });
github inkline / inkline / tests / unit / helpers / slugify.spec.js View on Github external
it('should return string as lowercase', () => {
            expect(slugify('ABC')).toEqual('abc');
        });
github inkline / inkline / tests / unit / helpers / slugify.spec.js View on Github external
it('should remove dash from start of text', () => {
            expect(slugify('-abc')).toEqual('abc');
        });
github inkline / inkline / tests / unit / helpers / slugify.spec.js View on Github external
it('should replace multiple dashes with single dash', () => {
            expect(slugify('a--bc')).toEqual('a-bc');
        });
github inkline / inkline / tests / unit / helpers / slugify.spec.js View on Github external
it('should replace spaces with dash', () => {
            expect(slugify('a bc')).toEqual('a-bc');
        });
github inkline / inkline / tests / unit / helpers / slugify.spec.js View on Github external
it('should remove non-word characters', () => {
            expect(slugify('a$bc')).toEqual('abc');
        });