pluginIcon.spec.tsx 487 B

1234567891011121314
  1. import {render} from 'sentry-test/reactTestingLibrary';
  2. import PluginIcon from 'sentry/plugins/components/pluginIcon';
  3. // For some reason jest only respects the last mocked, so we can't test
  4. // two different images here
  5. // jest.mock('images/logos/logo-default.svg', () => 'default', {});
  6. jest.mock('images/logos/logo-github.svg', () => 'github', {});
  7. describe('PluginIcon', function () {
  8. it('renders', function () {
  9. render(<PluginIcon pluginId="github" size={20} />);
  10. });
  11. });