fix(compiler): allow absolute style urls (#14365)

Closes #4974

PR Close #14365
This commit is contained in:
Dzmitry Shylovich
2017-02-09 00:18:01 +03:00
committed by Miško Hevery
parent a696f4aade
commit 6b9aa2ca3d
2 changed files with 4 additions and 4 deletions

View File

@ -110,9 +110,9 @@ export function main() {
it('should not resolve urls with other schema',
() => { expect(isStyleUrlResolvable('http://otherurl')).toBe(false); });
it('should not resolve urls with absolute paths', () => {
expect(isStyleUrlResolvable('/otherurl')).toBe(false);
expect(isStyleUrlResolvable('//otherurl')).toBe(false);
it('should resolve urls with absolute paths', () => {
expect(isStyleUrlResolvable('/otherurl')).toBe(true);
expect(isStyleUrlResolvable('//otherurl')).toBe(true);
});
});
}