KsqlDb.spec.tsx 516 B

1234567891011121314151617181920
  1. import React from 'react';
  2. import { mount } from 'enzyme';
  3. import KsqlDb from 'components/KsqlDb/KsqlDb';
  4. import { StaticRouter } from 'react-router';
  5. describe('KsqlDb Component', () => {
  6. const pathname = `clusters/local/ksql-db`;
  7. describe('KsqlDb', () => {
  8. const setupComponent = () => (
  9. <StaticRouter location={{ pathname }} context={{}}>
  10. <KsqlDb />
  11. </StaticRouter>
  12. );
  13. it('matches snapshot', () => {
  14. expect(mount(setupComponent())).toMatchSnapshot();
  15. });
  16. });
  17. });