diff options
Diffstat (limited to 'spec/frontend/notes/components/attachments_warning_spec.js')
-rw-r--r-- | spec/frontend/notes/components/attachments_warning_spec.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/frontend/notes/components/attachments_warning_spec.js b/spec/frontend/notes/components/attachments_warning_spec.js new file mode 100644 index 00000000000..0e99c26ed2b --- /dev/null +++ b/spec/frontend/notes/components/attachments_warning_spec.js @@ -0,0 +1,16 @@ +import { mount } from '@vue/test-utils'; +import AttachmentsWarning from '~/notes/components/attachments_warning.vue'; + +describe('Attachments Warning Component', () => { + let wrapper; + + beforeEach(() => { + wrapper = mount(AttachmentsWarning); + }); + + it('shows warning', () => { + const expected = + 'Attachments are sent by email. Attachments over 10 MB are sent as links to your GitLab instance, and only accessible to project members.'; + expect(wrapper.text()).toBe(expected); + }); +}); |