mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Added changes to load orphan visits and fixed tests
This commit is contained in:
@@ -15,8 +15,11 @@ describe('<HighlightCard />', () => {
|
||||
|
||||
afterEach(() => wrapper?.unmount());
|
||||
|
||||
it('renders expected components', () => {
|
||||
const wrapper = createWrapper({ title: 'foo' });
|
||||
it.each([
|
||||
[ undefined ],
|
||||
[ false ],
|
||||
])('renders expected components', (link) => {
|
||||
const wrapper = createWrapper({ title: 'foo', link: link as undefined | false });
|
||||
|
||||
expect(wrapper.find(Card)).toHaveLength(1);
|
||||
expect(wrapper.find(CardTitle)).toHaveLength(1);
|
||||
|
||||
Reference in New Issue
Block a user