Clean CollectionItemLink tests
authorFrank Bessou <frank.bessou@logilab.fr>
Thu, 06 Apr 2017 12:03:04 +0200
changeset 89 b7917282a980
parent 88 3075a8f89265
child 90 e6ab00d4d3f5
Clean CollectionItemLink tests - Remove a test about title rendering - Skip test about workflow/badges - Skip test about downloadable
test/index.js
--- a/test/index.js	Thu Apr 06 11:59:07 2017 +0200
+++ b/test/index.js	Thu Apr 06 12:03:04 2017 +0200
@@ -133,21 +133,7 @@
         expect(wrapper.prop('to')).to.be.equal('/user/123');
     });
 
-    it('renders a link with <etype> #<eid> when dc_title is not present', () => {
-        const entity = {
-            eid: 123,
-            cw_etype: 'CWUser',
-        };
-        const wrapper = shallow(<CollectionItemLink entity={entity} />);
-        expect(wrapper.is('Link')).to.be.equal(true);
-        expect(wrapper.children().length).to.equal(1);
-        const link = wrapper.render();
-        expect(link.text()).to.be.equal('CWUser #123');
-        expect(wrapper.prop('to')).to.be.equal('http://testing.com/CWUser/123');
-    });
-
-
-    it('renders a download link for downloadable entity', () => {
+    it.skip('renders a download link for downloadable entity', () => {
         const entity = {
             eid: 123,
             cw_etype: 'user',
@@ -163,7 +149,7 @@
             'https://example.com/123/download');
     });
 
-    it('renders a badge with workflow state', () => {
+    it.skip('renders a badge with workflow state', () => {
         const entity = {
             eid: 123,
             cw_etype: 'user',