Enable case methods tests (#4436)

This commit is contained in:
Luiz Américo
2019-08-24 13:41:50 -03:00
committed by John-David Dalton
parent 91c9cb1ea3
commit ed4b3a2ddb
5 changed files with 12 additions and 26 deletions

10
test/startCase.test.js Normal file
View 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');
});
});