Skip to content

Commit 9fa3112

Browse files
committed
Fix: strip quotes around urls
1 parent ada0170 commit 9fa3112

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/result.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default class Result {
66
constructor(url, opts) {
77
this.url = url
88
this.opts = opts
9-
this._file = Result.getFile(url, opts)
9+
this._file = Result.getFile(this.url, opts)
1010
this.asset = new Asset(this.file)
1111
}
1212

test/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import Result from '../lib/result'
88

99
var fixtures = path.resolve.bind(path, __dirname, 'fixtures')
1010

11-
test('main', function(t) {
11+
test.only('main', function(t) {
1212
let unchanged = '.b{c:url(http://a);d:url(data:image/png;base64,,,)}'
13-
let body = unchanged + '.a{ background-image: url(images/octocat_setup.png) url(images/octocat_fork.png); }'
13+
let body = unchanged + '.a{ background-image: url("images/octocat_setup.png") url(images/octocat_fork.png); }'
1414
let expectedBody = [ unchanged + '.a{background-image:url(', ')url(../images/octocat_fork.png);}' ]
1515
return del(fixtures('build'))
1616
.then(function () {

0 commit comments

Comments
 (0)