[TNL-7268] Remove icon mock

As we're not using snapshots, we will not need this anymore.
This commit is contained in:
Agrendalath
2020-07-15 22:53:04 +02:00
committed by David Joy
parent 0c5fd44d13
commit 7c046870e3
2 changed files with 3 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { render, screen } from '../../../../setupTest';
import { render } from '../../../../setupTest';
import UnitIcon from './UnitIcon';
describe('Unit Icon', () => {
@@ -19,8 +19,8 @@ describe('Unit Icon', () => {
jest.spyOn(console, 'error').mockImplementation(() => {});
}
render(<UnitIcon type={key} />);
expect(screen.getByTestId('icon')).toHaveClass(value);
const { container } = render(<UnitIcon type={key} />);
expect(container.querySelector('svg')).toHaveClass(value);
});
});
});