Latest updates from IceHrmPro
This commit is contained in:
17
web/node_modules/string-convert/test/test.camel2hyphen.js
generated
vendored
Normal file
17
web/node_modules/string-convert/test/test.camel2hyphen.js
generated
vendored
Normal file
@@ -0,0 +1,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');
|
||||
});
|
||||
|
||||
});
|
||||
17
web/node_modules/string-convert/test/test.hyphen2camel.js
generated
vendored
Normal file
17
web/node_modules/string-convert/test/test.hyphen2camel.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var should = require('should');
|
||||
var hyphen2camel = require('../hyphen2camel');
|
||||
|
||||
describe('hyphen2camel', function () {
|
||||
it('should convert min-width to minWidth', function () {
|
||||
hyphen2camel('min-width').should.equal('minWidth');
|
||||
});
|
||||
|
||||
it('should convert device-min-width to deviceMinWidth', function () {
|
||||
hyphen2camel('device-min-width').should.equal('deviceMinWidth');
|
||||
});
|
||||
|
||||
it('should convert -moz-transition to MozTransition', function () {
|
||||
hyphen2camel('-moz-transition').should.equal('MozTransition');
|
||||
});
|
||||
|
||||
});
|
||||
11
web/node_modules/string-convert/test/test.index.js
generated
vendored
Normal file
11
web/node_modules/string-convert/test/test.index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
var convert = require('../');
|
||||
|
||||
describe('string-convert', function () {
|
||||
it('convert.hyphen2camel should convert min-width to minWidth', function () {
|
||||
convert.hyphen2camel('min-width').should.equal('minWidth');
|
||||
});
|
||||
|
||||
it('convert.camel2hyphen should convert minWidth to min-width', function () {
|
||||
convert.camel2hyphen('minWidth').should.equal('min-width');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user