File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 21
21
"line" : 2 ,
22
22
"column" : 20
23
23
},
24
- "filename " : " comment.in.css"
24
+ "source " : " comment.in.css"
25
25
}
26
26
},
27
27
{
37
37
"line" : 3 ,
38
38
"column" : 51
39
39
},
40
- "filename " : " comment.in.css"
40
+ "source " : " comment.in.css"
41
41
}
42
42
}
43
43
],
50
50
"line" : 4 ,
51
51
"column" : 2
52
52
},
53
- "filename " : " comment.in.css"
53
+ "source " : " comment.in.css"
54
54
}
55
55
}
56
56
]
Original file line number Diff line number Diff line change @@ -26,14 +26,13 @@ describe('parse(str)', function(){
26
26
it ( 'should save the filename and source' , function ( ) {
27
27
var css = 'booty {\n size: large;\n}\n' ;
28
28
var ast = parse ( css , {
29
- filename : 'booty.css'
29
+ source : 'booty.css'
30
30
} ) ;
31
31
32
32
var position = ast . stylesheet . rules [ 0 ] . position
33
33
position . start . should . be . ok ;
34
34
position . end . should . be . ok ;
35
- position . filename . should . equal ( 'booty.css' ) ;
36
- position . source . should . equal ( css ) ;
35
+ position . source . should . equal ( 'booty.css' ) ;
37
36
} ) ;
38
37
39
38
it ( 'should throw when a selector is missing' , function ( ) {
You can’t perform that action at this time.
0 commit comments