Skip to content

Commit

Permalink
Added tests for camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
anselb committed Jul 21, 2019
1 parent d09c6b4 commit e07ba49
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,12 @@ test('Test snakeCase', () => {
expect('áé í ÓÚ '.snakeCase()).toBe('áé_í_óú');
expect(' 493 02 '.snakeCase()).toBe('493_02');
});


test('Test camelCase', () => {
expect(' HellO WoRLd '.camelCase()).toBe('helloWorld');
expect(''.camelCase()).toBe('');
expect(' 1HELLO world '.camelCase()).toBe('1helloWorld');
expect('áé í ÓÚ '.camelCase()).toBe('áéÍÓú');
expect(' 493 02 '.camelCase()).toBe('49302');
});

0 comments on commit e07ba49

Please sign in to comment.