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.
19 lines
580 B
19 lines
580 B
7 years ago
|
import React from 'react'
|
||
7 years ago
|
import { configure, shallow } from 'enzyme'
|
||
|
import Adapter from 'enzyme-adapter-react-16'
|
||
7 years ago
|
import Isvg from 'react-inlinesvg'
|
||
|
|
||
7 years ago
|
import AnimatedCheckmark from 'components/AnimatedCheckmark'
|
||
|
import checkmarkIcon from 'components/AnimatedCheckmark/checkmark.svg'
|
||
7 years ago
|
|
||
7 years ago
|
configure({ adapter: new Adapter() })
|
||
|
|
||
7 years ago
|
describe('component.AnimatedCheckmark', () => {
|
||
|
describe('default', () => {
|
||
|
it('should render default component', () => {
|
||
|
const el = shallow(<AnimatedCheckmark />)
|
||
7 years ago
|
expect(el.find(Isvg).props().src).toContain(checkmarkIcon)
|
||
7 years ago
|
})
|
||
|
})
|
||
|
})
|