(props)
| 316 | } |
| 317 | |
| 318 | export 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 | |
| 334 | export const deleteDir = function (dir_path) { |
| 335 | if (fs.existsSync(dir_path)) { |
no test coverage detected