diff --git a/server/tests/EventIcon.test.js b/server/tests/EventIcon.test.js
index 8e0ebaee..e5eae07f 100644
--- a/server/tests/EventIcon.test.js
+++ b/server/tests/EventIcon.test.js
@@ -1,22 +1,23 @@
import React from 'react'
import EventIcon from '../src/components/EventIcon'
import { shallow } from 'enzyme'
+import { Globe, IssueOpened, Package } from '@githubprimer/octicons-react'
describe('', () => {
describe('render', () => {
it('should render the correct octicon', () => {
const wrapper = shallow()
- expect(wrapper.find('GlobeIcon').length).toBe(1)
+ expect(wrapper.find('Octicon').props().icon).toEqual(Globe)
})
it('renders the correct octicon if there an action', () => {
const wrapper = shallow()
- expect(wrapper.find('IssueOpenedIcon').length).toBe(1)
+ expect(wrapper.find('Octicon').props().icon).toEqual(IssueOpened)
})
it('renders the package octicon if the event is unknown', () => {
const wrapper = shallow()
- expect(wrapper.find('PackageIcon').length).toBe(1)
+ expect(wrapper.find('Octicon').props().icon).toEqual(Package)
})
})
})