• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / 24612810-8aa7-46bc-a7ef-4e72040ccf0f

pending completion
24612810-8aa7-46bc-a7ef-4e72040ccf0f

push

circleci

GitHub
Merge pull request #2806 from mozilla/MNTOR-1019/dialog-add-email

282 of 1295 branches covered (21.78%)

Branch coverage included in aggregate %.

39 of 39 new or added lines in 6 files covered. (100.0%)

959 of 3494 relevant lines covered (27.45%)

4.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/utils/string-helpers.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
/**
6
* convert kebab-case to camelCase
7
* @param {string} str - a kebab-case string
8
* @example
9
* camelize ('two-hump-camel')
10
* // returns 'twoHumpCamel'
11
*/
12

13
function camelize (str) {
14
  return str.replace(/-./g, substr => substr[1].toUpperCase())
×
15
}
16

17
export { camelize }
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc