@@ -20,7 +20,7 @@ describe('parse(str)', function(){
2020 var ret = parse ( css , { source : file + '.css' } ) ;
2121 ret = JSON . stringify ( ret , null , 2 ) ;
2222 ret . should . equal ( json ) ;
23- } )
23+ } ) ;
2424 } ) ;
2525
2626 it ( 'should save the filename and source' , function ( ) {
@@ -29,7 +29,7 @@ describe('parse(str)', function(){
2929 source : 'booty.css'
3030 } ) ;
3131
32- var position = ast . stylesheet . rules [ 0 ] . position
32+ var position = ast . stylesheet . rules [ 0 ] . position ;
3333 position . start . should . be . ok ;
3434 position . end . should . be . ok ;
3535 position . source . should . equal ( 'booty.css' ) ;
@@ -44,7 +44,7 @@ describe('parse(str)', function(){
4444 assert . throws ( function ( ) {
4545 parse ( 'b { color: red; }\n{ color: green; }\na {color: blue; }' ) ;
4646 } ) ;
47- } )
47+ } ) ;
4848
4949 it ( 'should throw when a broken comment is found' , function ( ) {
5050 assert . throws ( function ( ) {
@@ -59,5 +59,11 @@ describe('parse(str)', function(){
5959 assert . doesNotThrow ( function ( ) {
6060 parse ( '/* /* */' ) ;
6161 } ) ;
62- } )
63- } )
62+ } ) ;
63+
64+ it ( 'should allow empty property value' , function ( ) {
65+ assert . doesNotThrow ( function ( ) {
66+ parse ( 'p { color:; }' ) ;
67+ } ) ;
68+ } ) ;
69+ } ) ;
0 commit comments