You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
520 B

import React from 'react'
import { configure, shallow } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import Isvg from 'react-inlinesvg'
import LoadingBolt from 'components/LoadingBolt'
import cloudboltIcon from 'icons/cloudbolt.svg'
configure({ adapter: new Adapter() })
describe('component.LoadingBolt', () => {
const el = shallow(<LoadingBolt />)
it('should show defaults', () => {
expect(el.find(Isvg).props().src).toContain(cloudboltIcon)
expect(el.text()).toContain('loading')
})
})