Skip to content

Commit

Permalink
Update add.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy authored May 9, 2024
1 parent 6abf75c commit 437296c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/add.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const jsdom = require('jsdom');
// const jsdom = require('jsdom');

QUnit.module('qunit testing', function() {
QUnit.test('Closed Way', assert => {
const { JSDOM } = jsdom;
// const { JSDOM } = jsdom;
var way = '<way id="1"><nd ref="2"/><nd ref="3"/><nd ref="4"/><nd ref="5"/><nd ref="2"/></way>';
let parser = new JSDOM.window.DOMParser();
// let parser = new JSDOM.window.DOMParser();
let parser = new window.DOMParser();
let xmlData = parser(way);
assert.true(BuildingShapeUtils.isClosed(xmlData));
});
Expand Down

0 comments on commit 437296c

Please sign in to comment.