13 lines
432 B
TypeScript
13 lines
432 B
TypeScript
import { fpSlugify } from './name.ts'
|
|
import { expect } from 'chai'
|
|
|
|
describe('name', function () {
|
|
describe('unit', function () {
|
|
describe('fpSlugify', function () {
|
|
it('should remove all capitalization and uppercase and spaces and special characters', function () {
|
|
expect(fpSlugify('ProjektMelody')).to.equal('projektmelody')
|
|
expect(fpSlugify('CJ_Clippy')).to.equal('cjclippy')
|
|
})
|
|
})
|
|
})
|
|
}) |