Skip to content

Commit

Permalink
Update test_utils.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy authored May 9, 2024
1 parent d4e2086 commit 70f6259
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_utils.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { BuildingShapeUtils } from '../src/extras/BuildingShapeUtils.js';

// 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 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 70f6259

Please sign in to comment.