From 31bf89c3eeb5ccdf844d52e828ee539a7c49469b Mon Sep 17 00:00:00 2001
From: Jack Reed <phillipjreed@gmail.com>
Date: Thu, 23 Jul 2020 17:13:29 -0600
Subject: [PATCH] Backfill ManifestListItem tests

---
 __tests__/src/components/ManifestListItem.test.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/__tests__/src/components/ManifestListItem.test.js b/__tests__/src/components/ManifestListItem.test.js
index 9f6d27f36..72f183c72 100644
--- a/__tests__/src/components/ManifestListItem.test.js
+++ b/__tests__/src/components/ManifestListItem.test.js
@@ -67,4 +67,16 @@ describe('ManifestListItem', () => {
     const wrapper = createWrapper();
     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');
+  });
 });
-- 
GitLab