mirror of https://github.com/linkerd/linkerd2.git
17 lines
525 B
JavaScript
17 lines
525 B
JavaScript
import Community from './Community.jsx';
|
|
import { routerWrap } from '../../test/testHelpers.jsx';
|
|
import { mount } from 'enzyme';
|
|
|
|
describe('Community', () => {
|
|
it('makes a iframe', () => {
|
|
let component = mount(routerWrap(Community));
|
|
expect(component.find("Community")).toHaveLength(1);
|
|
|
|
const src = component.find("iframe").props().src;
|
|
expect(src).toEqual("https://linkerd.io/dashboard/");
|
|
|
|
const title = component.find("iframe").props().title;
|
|
expect(title).toEqual("Community");
|
|
});
|
|
});
|