@@ -5,6 +5,7 @@ var testRaw = require("./helpers").testRaw;
55
66describe ( "camelCase" , function ( ) {
77var css = ".btn-info_is-disabled { color: blue; }" ;
8+ var cssMultipleDashes = ".btn--info_is-disabled { color: blue; }" ;
89var mixedCss = ".btn-info_is-disabled { color: blue; } .simple { color: red; }" ;
910var exports = {
1011with : [
@@ -16,6 +17,9 @@ describe("camelCase", function() {
1617dashes : [
1718[ 1 , "._1L-rnCOXCE_7H94L5XT4uB { color: blue; }" , "" ]
1819] ,
20+ multipleDashes : [
21+ [ 1 , "._3JUlsKrl__OF70Fq391jEw { color: blue; }" , "" ]
22+ ] ,
1923withoutOnly : [
2024[ 1 , "._1L-rnCOXCE_7H94L5XT4uB { color: blue; } .KKtodWG-IuEaequFjAsoJ { color: red; }" , "" ]
2125] ,
@@ -26,11 +30,13 @@ describe("camelCase", function() {
2630exports . with . locals = { 'btn-info_is-disabled' : '_1L-rnCOXCE_7H94L5XT4uB' } ;
2731exports . without . locals = { btnInfoIsDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , 'btn-info_is-disabled' : '_1L-rnCOXCE_7H94L5XT4uB' } ;
2832exports . dashes . locals = { btnInfo_isDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , 'btn-info_is-disabled' : '_1L-rnCOXCE_7H94L5XT4uB' } ;
33+ exports . multipleDashes . locals = { btnInfo_isDisabled : '_3JUlsKrl__OF70Fq391jEw' , 'btn--info_is-disabled' : '_3JUlsKrl__OF70Fq391jEw' } ;
2934exports . withoutOnly . locals = { btnInfoIsDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , simple : 'KKtodWG-IuEaequFjAsoJ' } ;
3035exports . dashesOnly . locals = { btnInfo_isDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , simple : 'KKtodWG-IuEaequFjAsoJ' } ;
3136test ( "with" , css , exports . with , "?modules" ) ;
3237test ( "without" , css , exports . without , "?modules&camelCase" ) ;
3338test ( "dashes" , css , exports . dashes , "?modules&camelCase=dashes" ) ;
39+ test ( "multipleDashes" , cssMultipleDashes , exports . multipleDashes , "?modules&camelCase=dashes" ) ;
3440// Remove this option in v1.0.0 and make the removal of the original classname the default behaviour. See #440.
3541test ( "withoutOnly" , mixedCss , exports . withoutOnly , "?modules&camelCase=only" ) ;
3642// Remove this option in v1.0.0 and make the removal of the original classname the default behaviour. See #440.
0 commit comments