Skip to content
Snippets Groups Projects
Commit 5125d895 authored by Albin Henriksson's avatar Albin Henriksson
Browse files

Fix broken test

parent 3036579b
No related branches found
No related tags found
1 merge request!131Resolve "Increase client test coverage"
Pipeline #44416 passed with warnings
This commit is part of merge request !131. Comments created here will be created in the context of that merge request.
import BuildOutlinedIcon from '@material-ui/icons/BuildOutlined'
import CheckBoxOutlinedIcon from '@material-ui/icons/CheckBoxOutlined'
import CreateOutlinedIcon from '@material-ui/icons/CreateOutlined'
import DnsOutlinedIcon from '@material-ui/icons/DnsOutlined'
import InfoOutlinedIcon from '@material-ui/icons/InfoOutlined'
import RadioButtonCheckedIcon from '@material-ui/icons/RadioButtonChecked'
import { shallow } from 'enzyme'
import { RichSlide } from '../interfaces/ApiRichModels'
import { renderSlideIcon } from './renderSlideIcon'
......@@ -34,7 +35,18 @@ it('returns DnsOutlinedIcon correctly ', async () => {
expect(icon).toBeDefined()
if (icon) {
const actualResult = shallow(icon)
const expectedResult = shallow(<DnsOutlinedIcon />)
const expectedResult = shallow(<CheckBoxOutlinedIcon />)
expect(actualResult).toEqual(expectedResult)
}
})
it('returns DnsOutlinedIcon correctly ', async () => {
const testSlide = { questions: [{ id: 5, type_id: 4 }] } as RichSlide
const icon = renderSlideIcon(testSlide)
expect(icon).toBeDefined()
if (icon) {
const actualResult = shallow(icon)
const expectedResult = shallow(<RadioButtonCheckedIcon />)
expect(actualResult).toEqual(expectedResult)
}
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment