diff options
Diffstat (limited to 'spec/frontend/notes/components/comment_field_layout_spec.js')
-rw-r--r-- | spec/frontend/notes/components/comment_field_layout_spec.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/spec/frontend/notes/components/comment_field_layout_spec.js b/spec/frontend/notes/components/comment_field_layout_spec.js index 93b54f95021..b55019ed525 100644 --- a/spec/frontend/notes/components/comment_field_layout_spec.js +++ b/spec/frontend/notes/components/comment_field_layout_spec.js @@ -31,19 +31,13 @@ describe('Comment Field Layout Component', () => { const findAttachmentsWarning = () => wrapper.findComponent(AttachmentsWarning); const findErrorAlert = () => wrapper.findByTestId('comment-field-alert-container'); - const createWrapper = (props = {}, provide = {}) => { + const createWrapper = (props = {}) => { wrapper = extendedWrapper( shallowMount(CommentFieldLayout, { propsData: { noteableData: noteableDataMock, ...props, }, - provide: { - glFeatures: { - serviceDeskNewNoteEmailNativeAttachments: true, - }, - ...provide, - }, }), ); }; @@ -160,22 +154,4 @@ describe('Comment Field Layout Component', () => { expect(findEmailParticipantsWarning().exists()).toBe(false); }); }); - - describe('serviceDeskNewNoteEmailNativeAttachments flag', () => { - it('shows warning message when flag is enabled', () => { - createWrapper(commentFieldWithAttachmentData, { - glFeatures: { serviceDeskNewNoteEmailNativeAttachments: true }, - }); - - expect(findAttachmentsWarning().exists()).toBe(true); - }); - - it('shows warning message when flag is disables', () => { - createWrapper(commentFieldWithAttachmentData, { - glFeatures: { serviceDeskNewNoteEmailNativeAttachments: false }, - }); - - expect(findAttachmentsWarning().exists()).toBe(false); - }); - }); }); |