Skip to content

Commit

Permalink
Added tests for kabobCase
Browse files Browse the repository at this point in the history
  • Loading branch information
anselb committed Jul 21, 2019
1 parent 4e276d4 commit bc37d95
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ test('Test removeExtraSpaces', () => {
expect('áé í óú '.removeExtraSpaces()).toBe('áé í óú');
expect(' 493 02 '.removeExtraSpaces()).toBe('493 02');
});

test('Test kabobCase', () => {
expect(' HellO WoRLd '.kabobCase()).toBe('hello-world');
expect(''.kabobCase()).toBe('');
expect(' 1HELLO world '.kabobCase()).toBe('1hello-world');
expect('áé í ÓÚ '.kabobCase()).toBe('áé-í-óú');
expect(' 493 02 '.kabobCase()).toBe('493-02');
});

0 comments on commit bc37d95

Please sign in to comment.