mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Fixed warnings in DropdownBtn test
This commit is contained in:
parent
4b8e5bf3fc
commit
0fce6dd821
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ import { DropdownBtn, DropdownBtnProps } from '../../src/utils/DropdownBtn';
|
|||
describe('<DropdownBtn />', () => {
|
||||
let wrapper: ShallowWrapper;
|
||||
const createWrapper = (props: PropsWithChildren<DropdownBtnProps>) => {
|
||||
wrapper = shallow(<DropdownBtn {...props} />);
|
||||
wrapper = shallow(<DropdownBtn children={'foo'} {...props} />);
|
||||
|
||||
return wrapper;
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ describe('<DropdownBtn />', () => {
|
|||
const wrapper = createWrapper({ text });
|
||||
const toggle = wrapper.find(DropdownToggle);
|
||||
|
||||
expect(toggle.html()).toContain(text);
|
||||
expect(toggle.prop('children')).toContain(text);
|
||||
});
|
||||
|
||||
it.each([[ 'foo' ], [ 'bar' ], [ 'baz' ]])('displays provided children', (children) => {
|
||||
|
|
Loading…
Reference in a new issue