mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 09:18:59 +00:00
ccc8581229
Updates configuration and fixes issues introduced
25 lines
677 B
JavaScript
25 lines
677 B
JavaScript
import React from 'react';
|
|
import expect from 'expect';
|
|
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 },
|
|
{ type: 'status', display_text: 'ONLINE', 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(3);
|
|
});
|
|
});
|
|
|