mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
11 lines
370 B
JavaScript
11 lines
370 B
JavaScript
import assert from 'assert';
|
|
import startCase from '../startCase.js';
|
|
|
|
describe('startCase', function() {
|
|
it('should uppercase only the first character of each word', function() {
|
|
assert.strictEqual(startCase('--foo-bar--'), 'Foo Bar');
|
|
assert.strictEqual(startCase('fooBar'), 'Foo Bar');
|
|
assert.strictEqual(startCase('__FOO_BAR__'), 'FOO BAR');
|
|
});
|
|
});
|