@@ -30,7 +30,24 @@ describe('options/colon-space', function() {
3030 'a {color /* bar */: red }'
3131 ) ;
3232 } ) ;
33- it ( '`after` value should set space after colon' , function ( ) {
33+ it ( 'False Boolean value should set no space around colon' , function ( ) {
34+ comb . configure ( { 'colon-space' : false } ) ;
35+ assert . equal (
36+ comb . processString (
37+ 'a { color: red }' +
38+ 'a{color:red}' +
39+ 'a {color : red}' +
40+ 'a {color : /* foo */ red }' +
41+ 'a {color /* bar */ : red }'
42+ ) ,
43+ 'a { color:red }' +
44+ 'a{color:red}' +
45+ 'a {color:red}' +
46+ 'a {color:/* foo */ red }' +
47+ 'a {color /* bar */:red }'
48+ ) ;
49+ } ) ;
50+ it ( 'String `after` value should set space after colon' , function ( ) {
3451 comb . configure ( { 'colon-space' : 'after' } ) ;
3552 assert . equal (
3653 comb . processString (
@@ -47,7 +64,7 @@ describe('options/colon-space', function() {
4764 'a {color /* bar */: red }'
4865 ) ;
4966 } ) ;
50- it ( '`before` value should set space before colon' , function ( ) {
67+ it ( 'String `before` value should set space before colon' , function ( ) {
5168 comb . configure ( { 'colon-space' : 'before' } ) ;
5269 assert . equal (
5370 comb . processString (
@@ -64,7 +81,7 @@ describe('options/colon-space', function() {
6481 'a {color /* bar */ :red }'
6582 ) ;
6683 } ) ;
67- it ( '`both` value should set spaces around colon' , function ( ) {
84+ it ( 'String `both` value should set spaces around colon' , function ( ) {
6885 comb . configure ( { 'colon-space' : 'both' } ) ;
6986 assert . equal (
7087 comb . processString (
@@ -77,7 +94,7 @@ describe('options/colon-space', function() {
7794 'a {color : red}'
7895 ) ;
7996 } ) ;
80- it ( '` ` value should set two spaces after colon' , function ( ) {
97+ it ( 'String ` ` value should set two spaces after colon' , function ( ) {
8198 comb . configure ( { 'colon-space' : ' ' } ) ;
8299 assert . equal (
83100 comb . processString (
@@ -90,7 +107,7 @@ describe('options/colon-space', function() {
90107 'a {color: red}'
91108 ) ;
92109 } ) ;
93- it ( '`:` value should set no space around colon' , function ( ) {
110+ it ( 'String `:` value should set no space around colon' , function ( ) {
94111 comb . configure ( { 'colon-space' : ':' } ) ;
95112 assert . equal (
96113 comb . processString (
@@ -103,20 +120,20 @@ describe('options/colon-space', function() {
103120 'a {color:red}'
104121 ) ;
105122 } ) ;
106- it ( '`\\n: ` value should set a newline before colon' , function ( ) {
107- comb . configure ( { 'colon-space' : '\n: ' } ) ;
123+ it ( 'String ` ` value should set no space around colon' , function ( ) {
124+ comb . configure ( { 'colon-space' : '' } ) ;
108125 assert . equal (
109126 comb . processString (
110127 'a { color: red }' +
111128 'a{color:red}' +
112129 'a {color : red}'
113130 ) ,
114- 'a { color\n :red }' +
115- 'a{color\n :red}' +
116- 'a {color\n :red}'
131+ 'a { color:red }' +
132+ 'a{color:red}' +
133+ 'a {color:red}'
117134 ) ;
118135 } ) ;
119- it ( '`\\t:\\t` value should set tabs around colon' , function ( ) {
136+ it ( 'String `\\t:\\t` value should set tabs around colon' , function ( ) {
120137 comb . configure ( { 'colon-space' : '\t:\t' } ) ;
121138 assert . equal (
122139 comb . processString (
0 commit comments