@@ -5,6 +5,7 @@ var testRaw = require("./helpers").testRaw;
5
5
6
6
describe ( "camelCase" , function ( ) {
7
7
var css = ".btn-info_is-disabled { color: blue; }" ;
8
+ var cssMultipleDashes = ".btn--info_is-disabled { color: blue; }" ;
8
9
var mixedCss = ".btn-info_is-disabled { color: blue; } .simple { color: red; }" ;
9
10
var exports = {
10
11
with : [
@@ -16,6 +17,9 @@ describe("camelCase", function() {
16
17
dashes : [
17
18
[ 1 , "._1L-rnCOXCE_7H94L5XT4uB { color: blue; }" , "" ]
18
19
] ,
20
+ multipleDashes : [
21
+ [ 1 , "._3JUlsKrl__OF70Fq391jEw { color: blue; }" , "" ]
22
+ ] ,
19
23
withoutOnly : [
20
24
[ 1 , "._1L-rnCOXCE_7H94L5XT4uB { color: blue; } .KKtodWG-IuEaequFjAsoJ { color: red; }" , "" ]
21
25
] ,
@@ -26,11 +30,13 @@ describe("camelCase", function() {
26
30
exports . with . locals = { 'btn-info_is-disabled' : '_1L-rnCOXCE_7H94L5XT4uB' } ;
27
31
exports . without . locals = { btnInfoIsDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , 'btn-info_is-disabled' : '_1L-rnCOXCE_7H94L5XT4uB' } ;
28
32
exports . 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' } ;
29
34
exports . withoutOnly . locals = { btnInfoIsDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , simple : 'KKtodWG-IuEaequFjAsoJ' } ;
30
35
exports . dashesOnly . locals = { btnInfo_isDisabled : '_1L-rnCOXCE_7H94L5XT4uB' , simple : 'KKtodWG-IuEaequFjAsoJ' } ;
31
36
test ( "with" , css , exports . with , "?modules" ) ;
32
37
test ( "without" , css , exports . without , "?modules&camelCase" ) ;
33
38
test ( "dashes" , css , exports . dashes , "?modules&camelCase=dashes" ) ;
39
+ test ( "multipleDashes" , cssMultipleDashes , exports . multipleDashes , "?modules&camelCase=dashes" ) ;
34
40
// Remove this option in v1.0.0 and make the removal of the original classname the default behaviour. See #440.
35
41
test ( "withoutOnly" , mixedCss , exports . withoutOnly , "?modules&camelCase=only" ) ;
36
42
// Remove this option in v1.0.0 and make the removal of the original classname the default behaviour. See #440.
0 commit comments