Added changes to load orphan visits and fixed tests

This commit is contained in:
Alejandro Celaya
2022-02-05 13:37:49 +01:00
parent 60929342fb
commit 8fbe6bb17d
10 changed files with 63 additions and 34 deletions

View File

@@ -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);