import {mountWithTheme} from 'sentry-test/enzyme';
import Content from 'sentry/views/settings/components/dataScrubbing/content';
import convertRelayPiiConfig from 'sentry/views/settings/components/dataScrubbing/convertRelayPiiConfig';
const relayPiiConfig = TestStubs.DataScrubbingRelayPiiConfig();
const stringRelayPiiConfig = JSON.stringify(relayPiiConfig);
const convertedRules = convertRelayPiiConfig(stringRelayPiiConfig);
const handleEditRule = jest.fn();
const handleDelete = jest.fn();
describe('Content', () => {
it('default render - empty', () => {
const wrapper = mountWithTheme(
);
expect(wrapper.text()).toEqual('You have no data scrubbing rules');
});
it('render rules', () => {
const wrapper = mountWithTheme(
);
expect(wrapper.find('List')).toHaveLength(1);
});
});