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