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:
@ -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();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user