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/upperCase.test.js Normal file
View File

@@ -0,0 +1,10 @@
import assert from 'assert';
import upperCase from '../upperCase.js';
describe('upperCase', function() {
it('should uppercase as space-separated words', function() {
assert.strictEqual(upperCase('--foo-bar--'), 'FOO BAR');
assert.strictEqual(upperCase('fooBar'), 'FOO BAR');
assert.strictEqual(upperCase('__foo_bar__'), 'FOO BAR');
});
});