do not add origin before data uri image

This commit is contained in:
Yanzhen Yu
2018-12-27 12:44:52 +08:00
parent e0b56e5de0
commit 922be70f54
2 changed files with 10 additions and 0 deletions

View File

@@ -46,4 +46,10 @@ describe('absolute url to stylesheet', () => {
`url('http://localhost/css/a.jpg')`,
);
});
it('can handle data url image', () => {
expect(
absoluteToStylesheet('url(data:image/gif;base64,ABC)', href),
).to.equal('url(data:image/gif;base64,ABC)');
});
});