Skip to content

Commit 214ebda

Browse files
committed
Get tests working again
1 parent 018175e commit 214ebda

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

test/cases/comment.in.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"line": 2,
2222
"column": 20
2323
},
24-
"filename": "comment.in.css"
24+
"source": "comment.in.css"
2525
}
2626
},
2727
{
@@ -37,7 +37,7 @@
3737
"line": 3,
3838
"column": 51
3939
},
40-
"filename": "comment.in.css"
40+
"source": "comment.in.css"
4141
}
4242
}
4343
],
@@ -50,7 +50,7 @@
5050
"line": 4,
5151
"column": 2
5252
},
53-
"filename": "comment.in.css"
53+
"source": "comment.in.css"
5454
}
5555
}
5656
]

test/css-parse.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ describe('parse(str)', function(){
2626
it('should save the filename and source', function(){
2727
var css = 'booty {\n size: large;\n}\n';
2828
var ast = parse(css, {
29-
filename: 'booty.css'
29+
source: 'booty.css'
3030
});
3131

3232
var position = ast.stylesheet.rules[0].position
3333
position.start.should.be.ok;
3434
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');
3736
});
3837

3938
it('should throw when a selector is missing', function(){

0 commit comments

Comments
 (0)