Add a cleanup to tests

This commit is contained in:
Deluan 2021-04-22 14:04:48 -04:00
parent 240de70026
commit aa9cf8ef17

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'