Skip to content

Commit 2a0ab6d

Browse files
committed
fix typo
1 parent 3bdb5e9 commit 2a0ab6d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/building.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Building {
7878
try {
7979
this.validateData(outerElementXml);
8080
} catch (e) {
81-
throw new Error(`Rendering of ${outerElementXml.tagName.toLowerCase()} ${id} is not is not possible. ${e}`);
81+
throw new Error(`Rendering of ${outerElementXml.tagName.toLowerCase()} ${id} is not possible. ${e}`);
8282
}
8383

8484
this.nodelist = Building.buildNodeList(this.fullXmlData);

test/building.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test('Test data validation open outline', () => {
6969
<tag k="building" v="yes"/>
7070
</way>`;
7171
expect(() => new Building('1', data))
72-
.toThrow(new Error('Rendering of way 1 is not is not possible. Error: Way 1 is not a closed way. 2 !== 4.'));
72+
.toThrow(new Error('Rendering of way 1 is not possible. Error: Way 1 is not a closed way. 2 !== 4.'));
7373
});
7474

7575
test('Test data validation with not building', () => {
@@ -82,7 +82,7 @@ test('Test data validation with not building', () => {
8282
<tag k="not:building" v="yes"/>
8383
</way>`;
8484
expect(() => new Building('1', data))
85-
.toThrow(new Error('Rendering of way 1 is not is not possible. Error: Outer way is not a building'));
85+
.toThrow(new Error('Rendering of way 1 is not possible. Error: Outer way is not a building'));
8686
});
8787

8888
test('Test data validation with empty way', () => {
@@ -91,7 +91,7 @@ test('Test data validation with empty way', () => {
9191
<tag k="building" v="yes"/>
9292
</way>`;
9393
expect(() => new Building('1', data))
94-
.toThrow(new Error('Rendering of way 1 is not is not possible. Error: Way 1 has no nodes.'));
94+
.toThrow(new Error('Rendering of way 1 is not possible. Error: Way 1 has no nodes.'));
9595
});
9696

9797
test('Test Constructor', async() => {

0 commit comments

Comments
 (0)