mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
22 lines
719 B
TypeScript
22 lines
719 B
TypeScript
/* eslint-disable jest/no-disabled-tests */
|
|
|
|
import {render} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import PluginIcon from 'sentry/plugins/components/pluginIcon';
|
|
|
|
// For some reason jest only respects the last mocked, so we can't test
|
|
// two different images here
|
|
// jest.mock('images/logos/logo-default.svg', () => 'default', {});
|
|
jest.mock('images/logos/logo-github.svg', () => 'github', {});
|
|
|
|
describe('PluginIcon', function () {
|
|
it('renders', function () {
|
|
render(<PluginIcon pluginId="github" size={20} />);
|
|
});
|
|
|
|
// doesn't work because of the above comment
|
|
it.skip('renders with default icon with invalid plugin id', function () {
|
|
render(<PluginIcon pluginId="invalid" size={20} />);
|
|
});
|
|
});
|