svg-pathdata
Version:
Manipulate SVG path data (path[d] attribute content) simply and efficiently.
8 lines • 364 B
JavaScript
import { describe, test, expect } from '@jest/globals';
import { SVGPathData } from '../index.js';
describe('SVGPathDataParser', () => {
test('should fail when a bad command is given', () => {
expect(() => SVGPathData.parse('b80,20')).toThrow(new SyntaxError('Unexpected character "b" at index 0.'));
});
});
//# sourceMappingURL=parser.test.js.map