Skip to content
Snippets Groups Projects

Add truncation to work item description

1 unresolved thread
Compare and Show latest version
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -22,6 +22,7 @@ describe('WorkItemDescription', () => {
@@ -22,6 +22,7 @@ describe('WorkItemDescription', () => {
canEdit = false,
canEdit = false,
disableInlineEditing = false,
disableInlineEditing = false,
mockComputed = {},
mockComputed = {},
 
hasWorkItemsMvc2 = false,
} = {}) => {
} = {}) => {
wrapper = shallowMount(WorkItemDescriptionRendered, {
wrapper = shallowMount(WorkItemDescriptionRendered, {
propsData: {
propsData: {
@@ -30,6 +31,9 @@ describe('WorkItemDescription', () => {
@@ -30,6 +31,9 @@ describe('WorkItemDescription', () => {
disableInlineEditing,
disableInlineEditing,
},
},
computed: mockComputed,
computed: mockComputed,
 
provide: {
 
workItemsMvc2: hasWorkItemsMvc2,
 
},
});
});
};
};
@@ -53,6 +57,7 @@ describe('WorkItemDescription', () => {
@@ -53,6 +57,7 @@ describe('WorkItemDescription', () => {
return true;
return true;
},
},
},
},
 
hasWorkItemsMvc2: true,
});
});
expect(wrapper.find('.description-more').exists()).toBe(true);
expect(wrapper.find('.description-more').exists()).toBe(true);
@@ -71,6 +76,7 @@ describe('WorkItemDescription', () => {
@@ -71,6 +76,7 @@ describe('WorkItemDescription', () => {
return false;
return false;
},
},
},
},
 
hasWorkItemsMvc2: true,
});
});
expect(wrapper.find('.description-more').exists()).toBe(false);
expect(wrapper.find('.description-more').exists()).toBe(false);
Loading