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.
13 lines
443 B
13 lines
443 B
import React from 'react'
|
|
import { shallow } from 'enzyme'
|
|
import Isvg from 'react-inlinesvg'
|
|
import LoadingBolt from '../../app/components/LoadingBolt'
|
|
import cloudboltIcon from '../../app/icons/cloudbolt.svg'
|
|
|
|
describe('component.LoadingBolt', () => {
|
|
const el = shallow(<LoadingBolt />)
|
|
it('should show defaults', () => {
|
|
expect(el.find(Isvg).props().src).toContain(cloudboltIcon)
|
|
expect(el.text()).toContain('loading')
|
|
})
|
|
})
|
|
|