Skip to content

Commit b83d2d9

Browse files
committed
Add test for empty urls
1 parent 34127ec commit b83d2d9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
npm-debug.log
3+
coverage

test/css-parser-test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ var should = require('should')
5252
var urls = parseCssUrls(text);
5353
urls.should.be.empty;
5454
});
55+
56+
it('should ignore empty urls', function(){
57+
var text = 'div.image { background-image: url(""); } ';
58+
59+
var urls = parseCssUrls(text);
60+
urls.should.be.empty;
61+
});
5562
});

0 commit comments

Comments
 (0)