test.hyphen2camel.js 536 B

1234567891011121314151617
  1. var should = require('should');
  2. var hyphen2camel = require('../hyphen2camel');
  3. describe('hyphen2camel', function () {
  4. it('should convert min-width to minWidth', function () {
  5. hyphen2camel('min-width').should.equal('minWidth');
  6. });
  7. it('should convert device-min-width to deviceMinWidth', function () {
  8. hyphen2camel('device-min-width').should.equal('deviceMinWidth');
  9. });
  10. it('should convert -moz-transition to MozTransition', function () {
  11. hyphen2camel('-moz-transition').should.equal('MozTransition');
  12. });
  13. });