Add a cleanup to tests

This commit is contained in:
Deluan 2021-04-22 14:04:48 -04:00 committed by Joe Stump
parent 060fc8efcc
commit c089cae987
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -7,6 +7,8 @@ import StarBorderIcon from '@material-ui/icons/StarBorder'
import DynamicMenuIcon from './DynamicMenuIcon'
describe('<DynamicMenuIcon />', () => {
afterEach(cleanup)
it('renders icon if no activeIcon is specified', () => {
const history = createMemoryHistory()
const route = '/test'