Skip to content

Commit 8dc87d0

Browse files
committed
fix: Support single-key configuration panels correctly
1 parent 5eaa291 commit 8dc87d0

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/api/Configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class Configuration {
117117
if (lowerCase) {
118118
configurationKey = configurationKey.toLowerCase()
119119
}
120-
rowObject[configurationKey] = $(values[index + i * 2]).text()
120+
rowObject[configurationKey] = $(values[index + i * keys.length]).text()
121121
})
122122
returnObject.push(rowObject)
123123
}

test/ConfigurationTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('The Configuration API', (): void => {
2222
chai.expect(configuration.maintainer).to.have.lengthOf(1)
2323

2424
chai.expect(configuration.exceptions).to.have.lengthOf(1)
25-
chai.expect(configuration.excludedLabels).to.have.lengthOf(1)
25+
chai.expect(configuration.excludedLabels).to.have.lengthOf(2)
2626

2727
chai.expect(configuration.notificationBodyTemplate).to.eq(MockServer.NOTIFICATION_BODY)
2828
chai.expect(configuration.notificationSubjectTemplate).to.eq(MockServer.NOTIFICATION_SUBJECT)

test/MockServer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ export class MockServer {
155155
</tr>
156156
<tr>
157157
<td>NOT</td>
158+
</tr>
159+
<tr>
160+
<td>NOT2</td>
158161
</tr>
159162
</tbody>
160163
</table>

0 commit comments

Comments
 (0)