mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
wip: migrate to bun
This commit is contained in:
10
test/startCase.spec.ts
Normal file
10
test/startCase.spec.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user