Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
Signed-off-by: macdonst <[email protected]>
  • Loading branch information
macdonst committed May 2, 2024
1 parent 2b3d426 commit dc7e216
Show file tree
Hide file tree
Showing 4 changed files with 1,530 additions and 419 deletions.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (typeof process !== 'undefined') {
global.Worker = function() { return { postMessage: function() { } } }
}

function kebabToCamel(attribute) {
export function kebabToCamel(attribute) {
if (attribute.includes('-')) {
return attribute.split('-').map((word, index) => index !== 0 ? word.charAt(0).toUpperCase() + word.slice(1) : word
).join('')
Expand Down
Loading

0 comments on commit dc7e216

Please sign in to comment.