fleet/frontend/components/side_panels/HostSidePanel/PanelGroup/PanelGroup.tests.jsx
gillespi314 84615afbb3
Fix display of platform labels (#1866)
* Add policies UI components

* Add policy filter to hosts page
2021-08-31 20:02:23 -05:00

19 lines
573 B
JavaScript

import React from "react";
import { mount } from "enzyme";
import PanelGroup from "./PanelGroup";
describe("PanelGroup - component", () => {
const validPanelGroupItems = [
{ type: "all", display_text: "All Hosts", hosts_count: 20 },
{ type: "platform", display_text: "MAC OS", hosts_count: 10 },
];
const component = mount(<PanelGroup groupItems={validPanelGroupItems} />);
it("renders a PanelGroupItem for each group item", () => {
const panelGroupItems = component.find("PanelGroupItem");
expect(panelGroupItems.length).toEqual(2);
});
});