pull/3006/head
Jared Scheib 2018-03-20 18:41:45 -07:00
parent 5e4a60f96d
commit 2a77a3b776
1 changed files with 28 additions and 4 deletions

View File

@ -59,14 +59,26 @@ describe('Kapacitor.Containers.KapacitorRules', () => {
.dive()
.find('tbody')
.children()
.map(child => child.dive().find({type: 'checkbox'}).props().id)
.map(
child =>
child
.dive()
.find({type: 'checkbox'})
.props().id
)
const tasksTableIDs = wrapper
.find(TasksTable)
.dive()
.find('tbody')
.children()
.map(child => child.dive().find({type: 'checkbox'}).props().id)
.map(
child =>
child
.dive()
.find({type: 'checkbox'})
.props().id
)
const allCheckboxesIDs = kapacitorRulesTableRowsIDs.concat(tasksTableIDs)
@ -83,14 +95,26 @@ describe('Kapacitor.Containers.KapacitorRules', () => {
.dive()
.find('tbody')
.children()
.map(child => child.dive().find('label').props().htmlFor)
.map(
child =>
child
.dive()
.find('label')
.props().htmlFor
)
const tasksTableLabelFors = wrapper
.find(TasksTable)
.dive()
.find('tbody')
.children()
.map(child => child.dive().find('label').props().htmlFor)
.map(
child =>
child
.dive()
.find('label')
.props().htmlFor
)
const allCheckboxesLabelFors = kapacitorRulesTableRowsLabelFors.concat(
tasksTableLabelFors