spreadLayout.spec.jsx 619 B

12345678910111213141516171819202122232425262728
  1. import React from 'react';
  2. import {mountWithTheme} from 'sentry-test/enzyme';
  3. import SpreadLayout from 'app/components/spreadLayout';
  4. describe('SpreadLayout', function() {
  5. it('renders with one child', function() {
  6. const component = mountWithTheme(
  7. <SpreadLayout>
  8. <div>child</div>
  9. </SpreadLayout>
  10. );
  11. expect(component).toSnapshot();
  12. });
  13. it('renders with multiple children', function() {
  14. const component = mountWithTheme(
  15. <SpreadLayout>
  16. <div>child #1</div>
  17. <div>child #2</div>
  18. </SpreadLayout>
  19. );
  20. expect(component).toSnapshot();
  21. });
  22. });