mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Enable case methods tests (#4436)
This commit is contained in:
committed by
John-David Dalton
parent
91c9cb1ea3
commit
ed4b3a2ddb
10
test/startCase.test.js
Normal file
10
test/startCase.test.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user