Commit 80c745a3 authored by Simon Knox's avatar Simon Knox

Merge branch 'do-not-test-internal-bits-in-used-components' into 'master'

Do not test internal bits of ItemDueDate in relatedIssuableItem

See merge request gitlab-org/gitlab!67691
parents 9e35a616 2556e40e
...@@ -144,23 +144,6 @@ describe('RelatedIssuableItem', () => { ...@@ -144,23 +144,6 @@ describe('RelatedIssuableItem', () => {
expect(wrapper.find(IssueDueDate).props('closed')).toBe(true); expect(wrapper.find(IssueDueDate).props('closed')).toBe(true);
}); });
it('should not contain the `.text-danger` css class for overdue issue that is closed', async () => {
mountComponent({
props: {
...props,
closedAt: '2018-12-01T00:00:00.00Z',
},
});
await wrapper.vm.$nextTick();
expect(wrapper.find(IssueDueDate).find('.board-card-info-icon').classes('text-danger')).toBe(
false,
);
expect(wrapper.find(IssueDueDate).find('.board-card-info-text').classes('text-danger')).toBe(
false,
);
});
}); });
describe('token assignees', () => { describe('token assignees', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment