Files
2024-02-15 17:01:50 +00:00

24 lines
541 B
TypeScript

import {render} from 'sentry-test/reactTestingLibrary';
import SplitDiff from 'sentry/components/splitDiff';
describe('SplitDiff', function () {
beforeEach(function () {});
afterEach(function () {});
it('renders', function () {
render(<SplitDiff base="restaurant" target="aura" />);
});
it('renders with newlines', function () {
const base = `this is my restaurant
and restaurant
common`;
const target = `aura
and your aura
common`;
render(<SplitDiff base={base} target={target} />);
});
});