kafka-ui/kafka-ui-react-app/src/components/KsqlDb/__test__/KsqlDb.spec.tsx
Mgrdich 6a1053b2f4
Fixed frontend routing (#1745)
* Revert "Issue-1184: fix logo link and remove redundant path segment "ui" (#1658)"

This reverts commit b08e22915d.

* changing them dashboard logo from an anchor tag to a react-router dom link

* Dashboard element redirect to the same place
2022-03-21 20:00:11 +03:00

20 lines
519 B
TypeScript

import React from 'react';
import { mount } from 'enzyme';
import KsqlDb from 'components/KsqlDb/KsqlDb';
import { StaticRouter } from 'react-router';
describe('KsqlDb Component', () => {
const pathname = `ui/clusters/local/ksql-db`;
describe('KsqlDb', () => {
const setupComponent = () => (
<StaticRouter location={{ pathname }} context={{}}>
<KsqlDb />
</StaticRouter>
);
it('matches snapshot', () => {
expect(mount(setupComponent())).toMatchSnapshot();
});
});
});