@@ -16,35 +16,25 @@ describe('options/stick-brace', function() {
1616 it ( 'True Boolean value should set 1 space after brace' , function ( ) {
1717 comb . configure ( { 'stick-brace' : true } ) ;
1818 assert . equal (
19- comb . processString (
20- 'a { color: red }' +
21- 'a,\nb /* i */\n{ color: red }' +
22- 'a{color:red}' +
23- 'a \t\t \n{color:red}' +
24- 'a /* foo */ {color:red}'
25- ) ,
26- 'a { color: red }' +
27- 'a,\nb /* i */ { color: red }' +
28- 'a {color:red}' +
29- 'a {color:red}' +
30- 'a /* foo */ {color:red}'
19+ comb . processString ( 'a{color:red }' ) ,
20+ 'a {color:red \n}'
3121 ) ;
3222 } ) ;
3323 it ( 'Valid String value should set equal space after brace' , function ( ) {
3424 comb . configure ( { 'stick-brace' : '\n' } ) ;
3525 assert . equal (
3626 comb . processString (
37- 'a { color: red }' +
38- 'a, b /* i */ { color: red }' +
39- 'a{color:red}' +
40- 'a \t\t \n {color:red}' +
41- 'a /* foo */ { color:red }'
27+ 'a{ color: red }' +
28+ 'a, b /* i */ { color: red; }' +
29+ 'a \t\t \n {color:red\n \n }' +
30+ 'a /* foo */ {color:red ; \n \n\t }' +
31+ '@media all { .input__control { color: #000;\n \n }\t }'
4232 ) ,
43- 'a\n{ color: red }' +
44- 'a, b /* i */\n{ color: red }' +
45- 'a\n{color:red}' +
46- 'a\n{color:red}' +
47- 'a /* foo */ \n{color:red }'
33+ 'a\n{ color: red \n }' +
34+ 'a, b /* i */\n{ color: red;\n }' +
35+ 'a\n{color:red\n \n\n }' +
36+ 'a /* foo */ \n{color:red ;\n }' +
37+ '@media all\n{ .input__control \n{ color: #000;\n}\n }'
4838 ) ;
4939 } ) ;
5040} ) ;
0 commit comments