1234567891011121314151617181920212223 |
- import {render} from 'sentry-test/reactTestingLibrary';
- import PluginIcon from 'sentry/plugins/components/pluginIcon';
- jest.mock('images/logos/logo-github.svg', () => 'github', {});
- describe('PluginIcon', function () {
- it('renders', function () {
- const {container} = render(<PluginIcon pluginId="github" size={20} />);
- expect(container).toSnapshot();
- });
-
- it.skip('renders with default icon with invalid plugin id', function () {
- const {container} = render(<PluginIcon pluginId="invalid" size={20} />);
- expect(container).toSnapshot();
- });
- });
|