splitDiff.spec.tsx 541 B

1234567891011121314151617181920212223
  1. import {render} from 'sentry-test/reactTestingLibrary';
  2. import SplitDiff from 'sentry/components/splitDiff';
  3. describe('SplitDiff', function () {
  4. beforeEach(function () {});
  5. afterEach(function () {});
  6. it('renders', function () {
  7. render(<SplitDiff base="restaurant" target="aura" />);
  8. });
  9. it('renders with newlines', function () {
  10. const base = `this is my restaurant
  11. and restaurant
  12. common`;
  13. const target = `aura
  14. and your aura
  15. common`;
  16. render(<SplitDiff base={base} target={target} />);
  17. });
  18. });