chronograf/ui/test/flux/components/FluxScriptEditor.test.tsx

28 lines
559 B
TypeScript
Raw Normal View History

2018-04-13 21:58:47 +00:00
import React from 'react'
import FluxScriptEditor from 'src/flux/components/FluxScriptEditor'
2018-04-13 21:58:47 +00:00
import {shallow} from 'enzyme'
const setup = (override?) => {
const props = {
script: '',
onChangeScript: () => {},
...override,
}
const wrapper = shallow(<FluxScriptEditor {...props} />)
2018-04-13 21:58:47 +00:00
return {
wrapper,
props,
}
}
describe('Flux.Components.FluxScriptEditor', () => {
2018-04-13 21:58:47 +00:00
describe('rendering', () => {
it('renders without error', () => {
const {wrapper} = setup()
expect(wrapper.exists()).toBe(true)
})
})
})