Skip to content
Snippets Groups Projects
Commit 31bf89c3 authored by Jack Reed's avatar Jack Reed
Browse files

Backfill ManifestListItem tests

parent ded23007
No related branches found
No related tags found
No related merge requests found
...@@ -67,4 +67,16 @@ describe('ManifestListItem', () => { ...@@ -67,4 +67,16 @@ describe('ManifestListItem', () => {
const wrapper = createWrapper(); const wrapper = createWrapper();
expect(wrapper.find('.mirador-manifest-list-item-provider').children().text()).toEqual('addedFromUrl'); expect(wrapper.find('.mirador-manifest-list-item-provider').children().text()).toEqual('addedFromUrl');
}); });
it('when clicking a collection fires the showCollectionDialog', () => {
const showCollectionDialog = jest.fn();
const wrapper = createWrapper({ isCollection: true, showCollectionDialog });
wrapper.find(ButtonBase).simulate('click');
expect(showCollectionDialog).toHaveBeenCalledTimes(1);
});
it('displays a collection label for collections', () => {
const wrapper = createWrapper({ isCollection: true });
expect(wrapper.text()).toContain('collectionxyz');
});
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment