Skip to content

Commit 4249c8a

Browse files
authored
Update combine_ways.test.js
1 parent d5f4056 commit 4249c8a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/combine_ways.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ describe.each([
103103
}
104104
let result = BuildingShapeUtils.combineWays(xml);
105105
expect(result.length).toBe(length);
106+
expect(errorMsgs.length).toBe(errors.length);
106107
if (length) {
107108
expect(BuildingShapeUtils.isClosed(result[0]));
108109
expect(BuildingShapeUtils.isSelfIntersecting(result[0])).toBe(false);
@@ -113,8 +114,8 @@ describe.each([
113114

114115
window.printError = printError;
115116

116-
var errors = [];
117+
var errorMsgs = [];
117118

118119
function printError(txt) {
119-
errors.push[txt];
120+
errorMsgs.push[txt];
120121
}

0 commit comments

Comments
 (0)