UNPKG

kitchensink

Version:

Dispatch's awesome components and style guide

18 lines (15 loc) 515 B
import camelCasePropsToDashCase from 'camel-case-props-to-dash-case.js'; describe('camelCasePropsToDashCase', function() { it('converts to dash case correctly', function() { const result = camelCasePropsToDashCase({ borderLeft: '1px solid black', WebkitBoxSizing: 'border-box', msTransform: 'rotate(90deg)' }); expect(result).to.deep.equal({ 'border-left': '1px solid black', '-webkit-box-sizing': 'border-box', '-ms-transform': 'rotate(90deg)' }); }); });