MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / convertCssPropertiesToCamelCase

Function convertCssPropertiesToCamelCase

lib/utils.js:318–332  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

316}
317
318export const convertCssPropertiesToCamelCase = function (props) {
319 const output = {}
320 Object.keys(props).forEach(key => {
321 const keyCamel = toCamelCase(key)
322
323 if (isFontWeightProperty(keyCamel)) {
324 output[keyCamel] = convertFontWeightToNumber(props[key])
325 } else if (isColorProperty(keyCamel)) {
326 output[keyCamel] = convertColorToRGBA(props[key])
327 } else {
328 output[keyCamel] = props[key]
329 }
330 })
331 return output
332}
333
334export const deleteDir = function (dir_path) {
335 if (fs.existsSync(dir_path)) {

Calls 5

isColorPropertyFunction · 0.90
convertColorToRGBAFunction · 0.90
toCamelCaseFunction · 0.85
isFontWeightPropertyFunction · 0.85

Tested by

no test coverage detected