feat(elements): add tests for component factory strategy (#22413)

PR Close #22413
This commit is contained in:
Andrew Seguin
2018-03-01 11:26:29 -08:00
committed by Miško Hevery
parent 44f637a88b
commit d2be675acc
4 changed files with 218 additions and 23 deletions

View File

@ -46,7 +46,7 @@ export const scheduler = {
/**
* Convert a camelCased string to kebab-cased.
*/
export function camelToKebabCase(input: string): string {
export function camelToDashCase(input: string): string {
return input.replace(/[A-Z]/g, char => `-${char.toLowerCase()}`);
}