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 6e11879 commit 3b3f631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/building.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ const data = `

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

test('Test Constructor', async() => {
const bldg = new Building('4', data);
expect(bldg.home).toBeDeepCloseTo([4.0005, 4.0005], 10);
expect(bldg.parts.length).toBe(0);
expect(errors.length).toBe(0);
});

test('Create Nodelist', () => {
Expand All @@ -72,7 +74,7 @@ test('Create Nodelist', () => {

window.printError = printError;

const errors = [];
var errors = [];

function printError(txt) {
errors.push[txt];
Expand Down

0 comments on commit 3b3f631

Please sign in to comment.