Renamed Dropdown component to DropdownBtn

This commit is contained in:
Alejandro Celaya
2020-12-25 10:43:36 +01:00
parent e1298cfa81
commit 90d4fe72db
5 changed files with 19 additions and 19 deletions

View File

@@ -1,12 +1,12 @@
import { shallow, ShallowWrapper } from 'enzyme';
import { DropdownMenu, DropdownToggle } from 'reactstrap';
import { PropsWithChildren } from 'react';
import { Dropdown, DropdownProps } from '../../src/utils/Dropdown';
import { DropdownBtn, DropdownBtnProps } from '../../src/utils/DropdownBtn';
describe('<Dropdown />', () => {
describe('<DropdownBtn />', () => {
let wrapper: ShallowWrapper;
const createWrapper = (props: PropsWithChildren<DropdownProps>) => {
wrapper = shallow(<Dropdown {...props} />);
const createWrapper = (props: PropsWithChildren<DropdownBtnProps>) => {
wrapper = shallow(<DropdownBtn {...props} />);
return wrapper;
};