class-prefixer
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -27,3 +27,3 @@ var classNames = require('classnames'); | ||
}; | ||
cls.prefix = function () { | ||
cls.prefix = cls.toString = function () { | ||
return prefix; | ||
@@ -30,0 +30,0 @@ }; |
{ | ||
"name": "class-prefixer", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "clsssName prefixer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,2 +9,3 @@ require('should'); | ||
cls().should.eql('pre'); | ||
;('' + cls).should.eql('pre'); | ||
}); | ||
@@ -21,4 +22,4 @@ it('main class', function() { | ||
var cls = className('pre'); | ||
cls(null, 'b c').should.eql('b c') | ||
cls(null, ' b c ').should.eql('b c') | ||
cls(null, 'b c').should.eql('b c'); | ||
cls(null, ' b c ').should.eql('b c'); | ||
cls('a', ' b c').should.eql('pre-a b c'); | ||
@@ -28,2 +29,8 @@ cls('a b', ' b c').should.eql('pre-a pre-b b c'); | ||
}); | ||
it('prefix add', function() { | ||
var cls = className('pre'); | ||
var cls2 = cls.add('next'); | ||
cls2('a').should.eql('pre-next-a'); | ||
cls('a').should.eql('pre-a'); | ||
}) | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3352
65