Skip to content

Commit

Permalink
Merge pull request gdsestimating#80 from gpbmike/revert-DxfParser-import
Browse files Browse the repository at this point in the history
Revert DxfParser import in tests, fixes gdsestimating#79
  • Loading branch information
bzuillsmith authored Nov 8, 2021
2 parents 363a3e4 + 5def245 commit 5867832
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/DxfParser.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs';
import * as path from 'path';
import parse,{DxfParser} from '../dist/index.js';
import DxfParser from '../dist/index.js';
import should from 'should';
import approvals from 'approvals';

Expand Down Expand Up @@ -180,8 +180,9 @@ function verifyDxf(sourceFilePath) {
var sourceDirectory = path.dirname(sourceFilePath);

var file = fs.readFileSync(sourceFilePath, 'utf8');

var dxf = parse(file);

var parser = new DxfParser();
var dxf = parser.parse(file);

approvals.verifyAsJSON(sourceDirectory, baseName, dxf);
}

0 comments on commit 5867832

Please sign in to comment.