mirror of
https://github.com/fleetdm/fleet
synced 2026-05-18 14:38:53 +00:00
23 lines
502 B
JavaScript
23 lines
502 B
JavaScript
import React from 'react';
|
|
import expect from 'expect';
|
|
import { mount } from 'enzyme';
|
|
|
|
import Dropdown from './Dropdown';
|
|
|
|
describe('Dropdown - component', () => {
|
|
const options = [
|
|
{ text: 'Users', value: 'users' },
|
|
{ text: 'Groups', value: 'groups' },
|
|
];
|
|
|
|
const props = {
|
|
options,
|
|
};
|
|
|
|
it('renders the dropdown', () => {
|
|
const component = mount(<Dropdown {...props} />);
|
|
const dropdownSelect = component.find('Select');
|
|
|
|
expect(dropdownSelect).toExist();
|
|
});
|
|
});
|