mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 02:53:47 +00:00
Extracted InfoTooltip to its own component
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { shallow } from 'enzyme';
|
||||
import { ShortUrlFormCheckboxGroup } from '../../../src/short-urls/helpers/ShortUrlFormCheckboxGroup';
|
||||
import Checkbox from '../../../src/utils/Checkbox';
|
||||
import { InfoTooltip } from '../../../src/utils/InfoTooltip';
|
||||
|
||||
describe('<ShortUrlFormCheckboxGroup />', () => {
|
||||
test.each([
|
||||
@@ -11,6 +12,6 @@ describe('<ShortUrlFormCheckboxGroup />', () => {
|
||||
const checkbox = wrapper.find(Checkbox);
|
||||
|
||||
expect(checkbox.prop('className')).toEqual(expectedClassName);
|
||||
expect(wrapper.find('InfoTooltip')).toHaveLength(expectedAmountOfTooltips);
|
||||
expect(wrapper.find(InfoTooltip)).toHaveLength(expectedAmountOfTooltips);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user