Skip to content

Commit

Permalink
Add test case for integer delimiters (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeehausen authored and sindresorhus committed Apr 30, 2019
1 parent 32c6776 commit c376f21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ test('camelCase', t => {
t.is(camelCase('hello1'), 'hello1');
t.is(camelCase('1Hello'), '1Hello');
t.is(camelCase('1hello'), '1Hello');
t.is(camelCase('h2w'), 'h2W');
});

test('camelCase with pascalCase option', t => {
Expand Down Expand Up @@ -115,6 +116,7 @@ test('camelCase with pascalCase option', t => {
t.is(camelCase('Hello1', {pascalCase: true}), 'Hello1');
t.is(camelCase('1hello', {pascalCase: true}), '1Hello');
t.is(camelCase('1Hello', {pascalCase: true}), '1Hello');
t.is(camelCase('h1W', {pascalCase: true}), 'H1W');
});

test('invalid input', t => {
Expand Down

0 comments on commit c376f21

Please sign in to comment.