
* 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
20 lines
519 B
TypeScript
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();
|
|
});
|
|
});
|
|
});
|