1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-31 07:44:22 +03:00

Cover svg parser with tsdoc (#1584)

Moved to lib/parser.js. The code will be slightly simpler
when JSAPI will be removed in v3.
This commit is contained in:
Bogdan Chadkin
2021-09-23 21:45:22 +03:00
committed by GitHub
parent 7111c52f96
commit 6e23b9cf56
7 changed files with 139 additions and 62 deletions

View File

@ -5,7 +5,7 @@ const PATH = require('path');
const JSAPI = require('../../lib/svgo/jsAPI');
const CSSClassList = require('../../lib/svgo/css-class-list');
const CSSStyleDeclaration = require('../../lib/svgo/css-style-declaration');
const SVG2JS = require('../../lib/svgo/svg2js');
const { parseSvg } = require('../../lib/parser.js');
describe('svg2js', function () {
describe('working svg', function () {
@ -18,7 +18,7 @@ describe('svg2js', function () {
throw err;
}
root = SVG2JS(data);
root = parseSvg(data);
done();
});
});