test.camel2hyphen.js 536 B

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