File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ module.exports = function(css, options){
8383 return {
8484 type : 'stylesheet' ,
8585 stylesheet : {
86+ source : options . source ,
8687 rules : rulesList ,
8788 parsingErrors : errorsList
8889 }
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ describe('parse(str)', function() {
88 source : 'booty.css'
99 } ) ;
1010
11+ ast . stylesheet . source . should . equal ( 'booty.css' ) ;
12+
1113 var position = ast . stylesheet . rules [ 0 ] . position ;
1214 position . start . should . be . ok ;
1315 position . end . should . be . ok ;
@@ -53,7 +55,7 @@ describe('parse(str)', function() {
5355 } ) ;
5456
5557 it ( 'should list the parsing errors and continue parsing' , function ( ) {
56- var result = parse ( 'foo { color= red; } bar { color: blue; } baz {}} boo { display: none}' , {
58+ var result = parse ( 'foo { color= red; } bar { color: blue; } baz {}} boo { display: none}' , {
5759 silent : true ,
5860 source : 'foo.css'
5961 } ) ;
You can’t perform that action at this time.
0 commit comments