File tree 4 files changed +1901
-1356
lines changed
4 files changed +1901
-1356
lines changed Original file line number Diff line number Diff line change 12
12
"compile:amd" : " tsc -t es5 -m amd -d false --outFile ./dist/main.js" ,
13
13
"lint" : " eslint ./src/*.ts ./src/**/*.ts" ,
14
14
"---------------" : " " ,
15
+ "pretest" : " cd ./test/ && yarn install && cd .." ,
15
16
"test" : " yarn run test:target" ,
16
17
"test:src" : " cross-env TEST_TARGET=src yarn run test" ,
17
18
"test:dist" : " cross-env TEST_TARGET=dist yarn run test" ,
Original file line number Diff line number Diff line change 4
4
" packages/*"
5
5
],
6
6
"dependencies" : {
7
- "@test/test-target" : " link:assets/packages/wrapper" ,
7
+ "@test/test-target" : " link:./ assets/packages/wrapper" ,
8
8
"@test/root" : " link:../" ,
9
9
"@test/last-release" : " npm:node-html-parser@latest"
10
10
}
Original file line number Diff line number Diff line change
1
+ const { parse } = require ( '@test/test-target' ) ;
2
+
3
+ describe . only ( 'issue 267' , function ( ) {
4
+ it ( 'Incorrect Handling of Empty Class Attributes in SVG Parsing' , function ( ) {
5
+ const html = `<polygon points="-235.18 1571.95 1014.73 1284.4 1083.46 1590.1 -166.45 1877.65 -235.18 1571.95" fill="#ff8200" class="" design-color="primary"></polygon> ` ;
6
+ const root = parse ( html ) ;
7
+ root . toString ( ) . should . eql ( html ) ;
8
+ } ) ;
9
+ } ) ;
You can’t perform that action at this time.
0 commit comments