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