Revert "Test KapacitorRulesTable tr keys to be UUIDv4"

This reverts commit bd6674859c.
pull/10616/head
Jared Scheib 2018-03-16 14:18:57 -07:00
parent 12f45e6c6c
commit 54266c094a
1 changed files with 2 additions and 12 deletions

View File

@ -1,8 +1,6 @@
import React from 'react'
import {shallow} from 'enzyme'
import {isUUIDv4} from 'src/utils/stringValidators'
import KapacitorRulesTable from 'src/kapacitor/components/KapacitorRulesTable'
import {source, kapacitorRules} from 'test/resources'
@ -12,14 +10,14 @@ const setup = () => {
source,
rules: kapacitorRules,
onDelete: () => {},
onChangeRuleStatus: () => {},
onChangeRuleStatus: () => {}
}
const wrapper = shallow(<KapacitorRulesTable {...props} />)
return {
wrapper,
props,
props
}
}
@ -29,13 +27,5 @@ describe('Kapacitor.Components.KapacitorRulesTable', () => {
const {wrapper} = setup()
expect(wrapper.exists()).toBe(true)
})
it('renders each row with key that is a UUIDv4', () => {
const {wrapper} = setup()
wrapper
.find('tbody')
.children()
.forEach(child => expect(isUUIDv4(child.key())).toEqual(true))
})
})
})