@@ -326,9 +326,7 @@ test('deserialize : instantiate svg (path: with bezier) to objects', (t) => {
326326</svg>`
327327
328328 observed = deserialize ( { output : 'geometry' , target : 'geom2' , addMetaData : false } , sourceSvg )
329- t . is ( observed . length , 2 )
330- shape = observed [ 0 ]
331- t . is ( shape . points . length , 14 ) // open path
329+ t . is ( observed . length , 0 ) // open path
332330
333331 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
334332 t . is ( observed . length , 2 )
@@ -344,9 +342,7 @@ test('deserialize : instantiate svg (path: with bezier) to objects', (t) => {
344342</svg>`
345343
346344 observed = deserialize ( { output : 'geometry' , target : 'geom2' , addMetaData : false } , sourceSvg )
347- t . is ( observed . length , 1 )
348- shape = observed [ 0 ]
349- t . is ( shape . points . length , 29 ) // open path
345+ t . is ( observed . length , 0 ) // open path
350346
351347 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
352348 t . is ( observed . length , 1 )
@@ -420,13 +416,11 @@ test('deserialize : instantiate svg produced by inkscape to objects', (t) => {
420416`
421417
422418 let observed = deserialize ( { filename : 'inkscape' , output : 'geometry' , target : 'geom2' , addMetaData : false } , sourceSvg )
423- t . is ( observed . length , 2 )
419+ t . is ( observed . length , 1 )
424420 let shape = observed [ 0 ]
425- t . is ( shape . outlines . length , 1 )
421+ t . is ( shape . outlines . length , 2 )
426422 t . is ( shape . outlines [ 0 ] . length , 19 )
427- shape = observed [ 1 ]
428- t . is ( shape . outlines . length , 1 )
429- t . is ( shape . outlines [ 0 ] . length , 20 )
423+ t . is ( shape . outlines [ 1 ] . length , 20 )
430424
431425 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
432426 t . is ( observed . length , 2 )
@@ -446,13 +440,11 @@ test('deserialize : instantiate shape with a hole to objects', (t) => {
446440`
447441
448442 let observed = deserialize ( { output : 'geometry' , target : 'geom2' , addMetaData : false } , sourceSvg )
449- t . is ( observed . length , 2 )
443+ t . is ( observed . length , 1 )
450444 let shape = observed [ 0 ]
451- t . is ( shape . outlines . length , 1 )
452- t . is ( shape . outlines [ 0 ] . length , 38 )
453- shape = observed [ 1 ]
454- t . is ( shape . outlines . length , 1 )
445+ t . is ( shape . outlines . length , 2 )
455446 t . is ( shape . outlines [ 0 ] . length , 38 )
447+ t . is ( shape . outlines [ 1 ] . length , 38 )
456448
457449 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
458450 t . is ( observed . length , 2 )
@@ -472,9 +464,9 @@ test('deserialize : instantiate shape with a nested hole to objects', (t) => {
472464`
473465
474466 let observed = deserialize ( { output : 'geometry' , target : 'geom2' , addMetaData : false } , sourceSvg )
475- t . is ( observed . length , 4 )
467+ t . is ( observed . length , 1 )
476468 let shape = observed [ 0 ]
477- t . is ( shape . outlines . length , 1 )
469+ t . is ( shape . outlines . length , 4 )
478470 t . is ( shape . outlines [ 0 ] . length , 38 )
479471
480472 observed = deserialize ( { output : 'geometry' , target : 'path' , addMetaData : false } , sourceSvg )
0 commit comments