feat: Add SVG sprite support (#319)

This commit is contained in:
Ivan Quirino
2018-02-20 21:30:59 -03:00
committed by Cole Bemis
parent b3655c438f
commit 3422f0aaf7
6 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
/* eslint-env jest */
import buildSpriteString from '../build-sprite-string';
const icons = {
icon1:
'<line x1="23" y1="1" x2="1" y2="23"></line><line x1="1" y1="1" x2="23" y2="23"></line>',
icon2: '<circle cx="12" cy="12" r="11"></circle>',
};
test('builds sprite correctly', () => {
expect(buildSpriteString(icons)).toMatchSnapshot();
});