Skip to content

Commit

Permalink
Update building.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy authored May 16, 2024
1 parent 1e91247 commit c7b1c9d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/building.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ beforeEach(() => {
fetch.resetMocks();
});

test('Test Factory', async() => {
fetch.mockResponseOnce(data);
// test('Test Factory', async() => {
// fetch.mockResponseOnce(data);
// const shape = await Building.create('relation', '4');
// expect(fetch).toHaveBeenCalledTimes(2);
//});

const shape = await Building.create('relation', '4');

expect(fetch).toHaveBeenCalledTimes(2);
});
test('Create Nodelist', () => {
let xmlData = new window.DOMParser().parseFromString(data, 'text/xml');
const list = Building.buildNodeList(xmlData);
expect(lisst.length).toBe(4)
});

0 comments on commit c7b1c9d

Please sign in to comment.