您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

17 行
536 B

  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. });