Blame view

天文台pc/tianwentai-ui/node_modules/string-convert/test/test.camel2hyphen.js 536 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  var should = require('should');
  var camel2hyphen = require('../camel2hyphen');
  
  describe('camel2hyphen', function () {
    it('should convert minWith to min-width', function () {
      camel2hyphen('minWidth').should.equal('min-width');
    });
  
    it('should convert deviceMinWith to device-min-width', function () {
      camel2hyphen('deviceMinWidth').should.equal('device-min-width');
    });
  
    it('should convert MozTransition to -moz-transition', function () {
      camel2hyphen('MozTransition').should.equal('-moz-transition');
    });
    
  });