mirror of
https://gitlab.com/deeplydrumming/DeemixFix.git
synced 2026-01-15 16:32:59 -03:00
18 lines
562 B
JavaScript
18 lines
562 B
JavaScript
import { upperCaseFirstLowerCaseRest } from '../../../src/utils/texts'
|
|
|
|
describe('texts utils', () => {
|
|
describe('upperCaseFirstLowerCaseRest', () => {
|
|
it('converts a full uppercase string', () => {
|
|
expect(upperCaseFirstLowerCaseRest('TEST STRING')).toBe('Test string')
|
|
})
|
|
|
|
it('converts a full lowercase string', () => {
|
|
expect(upperCaseFirstLowerCaseRest('test string')).toBe('Test string')
|
|
})
|
|
|
|
it('converts a mixed string', () => {
|
|
expect(upperCaseFirstLowerCaseRest("i wOn'T woRK")).toBe("I won't work")
|
|
})
|
|
})
|
|
})
|