Skip to content

Commit

Permalink
Update split_way_multipolygon.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy authored May 16, 2024
1 parent f1bd95c commit e19f414
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/split_way_multipolygon.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,19 @@ const data = `
</way>
</osm>`;

beforeEach(() => {
fetch.resetMocks();
errors = [];
});

test('Test Simple Multipolygon', () => {
let xmlData = new window.DOMParser().parseFromString(data, 'text/xml');
const nodelist = Building.buildNodeList(xmlData);
const shape = new MultiBuildingPart('5', xmlData, nodelist);
expect(shape.id).toBe('5');
expect(shape.shape).toBeInstanceOf(Shape);
// expect(shape.roof).toBeInstanceOf(Mesh);
expect(errors.length).toBe(0);
});

window.printError = printError;
Expand Down

0 comments on commit e19f414

Please sign in to comment.