diff --git a/test.js b/test.js index 0e4e857..0342893 100644 --- a/test.js +++ b/test.js @@ -3,6 +3,9 @@ import camelCase from '.'; test('camelCase', t => { t.is(camelCase('foo'), 'foo'); + /// https://github.com/sindresorhus/camelcase/issues/95 + /// t.is(camelCase('IDs'), 'ids'); + /// t.is(camelCase('FooIDs'), 'fooIds'); t.is(camelCase('foo-bar'), 'fooBar'); t.is(camelCase('foo-bar-baz'), 'fooBarBaz'); t.is(camelCase('foo--bar'), 'fooBar'); @@ -160,6 +163,9 @@ test('camelCase with preserveConsecutiveUppercase option', t => { t.is(camelCase('РозовыйПушистыйFOOдинорогиf', {preserveConsecutiveUppercase: true}), 'розовыйПушистыйFOOдинорогиf'); t.is(camelCase('桑德在这里。', {preserveConsecutiveUppercase: true}), '桑德在这里。'); t.is(camelCase('桑德_在这里。', {preserveConsecutiveUppercase: true}), '桑德在这里。'); + /// https://github.com/sindresorhus/camelcase/issues/95 + /// t.is(camelCase('IDs', {preserveConsecutiveUppercase: true}), 'ids'); + t.is(camelCase('FooIDs', {preserveConsecutiveUppercase: true}), 'fooIDs'); }); test('camelCase with both pascalCase and preserveConsecutiveUppercase option', t => {