mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
11 lines
382 B
TypeScript
11 lines
382 B
TypeScript
import assert from 'node:assert';
|
|
import startCase from '../src/startCase';
|
|
|
|
describe('startCase', () => {
|
|
it('should uppercase only the first character of each word', () => {
|
|
assert.strictEqual(startCase('--foo-bar--'), 'Foo Bar');
|
|
assert.strictEqual(startCase('fooBar'), 'Foo Bar');
|
|
assert.strictEqual(startCase('__FOO_BAR__'), 'FOO BAR');
|
|
});
|
|
});
|