Skip to content

Commit

Permalink
Fixed polyline test by removing erroneous thickness prop
Browse files Browse the repository at this point in the history
  • Loading branch information
bzuillsmith committed Nov 29, 2019
1 parent 3f52fda commit b0425c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
18 changes: 2 additions & 16 deletions test/DxfParser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,22 +88,8 @@ describe('Parser', function() {
});

it('should parse POLYLINES', function() {
verifyDxf
var file = fs.readFileSync(path.join(__dirname, 'data', 'polylines.dxf'), 'utf8');

var parser = new DxfParser();
var dxf;
try {
dxf = parser.parseSync(file);
fs.writeFileSync(path.join(__dirname, 'data', 'polylines.actual.json'), JSON.stringify(dxf, null, 2));
}catch(err) {
should.not.exist(err);
}
should.exist(dxf);


var expected = fs.readFileSync(path.join(__dirname, 'data', 'polylines.expected.json'), {encoding: 'utf8'});
dxf.should.eql(JSON.parse(expected));

verifyDxf(path.join(__dirname, 'data', 'polylines.dxf'));
});

it('should parse ELLIPSE entities', function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 0
},
{
Expand Down Expand Up @@ -827,7 +826,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 1
},
{
Expand Down Expand Up @@ -1081,7 +1079,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 2
},
{
Expand Down Expand Up @@ -1993,7 +1990,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 3
},
{
Expand Down Expand Up @@ -2569,7 +2565,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 4
},
{
Expand Down Expand Up @@ -2725,7 +2720,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 5
},
{
Expand Down Expand Up @@ -3007,7 +3001,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 6
},
{
Expand Down Expand Up @@ -3219,7 +3212,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 7
},
{
Expand Down Expand Up @@ -3795,7 +3787,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 8
},
{
Expand Down Expand Up @@ -3951,7 +3942,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 9
},
{
Expand Down Expand Up @@ -4359,7 +4349,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 10
},
{
Expand Down Expand Up @@ -4613,7 +4602,6 @@
"is3dPolygonMeshClosed": false,
"isPolyfaceMesh": false,
"hasContinuousLinetypePattern": false,
"thickness": 0,
"handle": 11
}
]
Expand Down

0 comments on commit b0425c2

Please sign in to comment.