Skip to content

Commit

Permalink
Add a few more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 1, 2021
1 parent 696122b commit a83fd06
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 @@ -12,6 +12,7 @@ test('camelCase', t => {
t.is(camelCase('FOÈ-BAR'), 'foèBar');
t.is(camelCase('-foo-bar-'), 'fooBar');
t.is(camelCase('--foo--bar--'), 'fooBar');
t.is(camelCase('foo-1'), 'foo1');
t.is(camelCase('foo.bar'), 'fooBar');
t.is(camelCase('foo..bar'), 'fooBar');
t.is(camelCase('..foo..bar..'), 'fooBar');
Expand Down Expand Up @@ -77,6 +78,7 @@ test('camelCase with pascalCase option', t => {
t.is(camelCase('FOÈ-BAR', {pascalCase: true}), 'FoèBar');
t.is(camelCase('-foo-bar-', {pascalCase: true}), 'FooBar');
t.is(camelCase('--foo--bar--', {pascalCase: true}), 'FooBar');
t.is(camelCase('foo-1', {pascalCase: true}), 'Foo1');
t.is(camelCase('foo.bar', {pascalCase: true}), 'FooBar');
t.is(camelCase('foo..bar', {pascalCase: true}), 'FooBar');
t.is(camelCase('..foo..bar..', {pascalCase: true}), 'FooBar');
Expand Down

0 comments on commit a83fd06

Please sign in to comment.