blob: 0e99c26ed2bf8c3bc3d5627697a9fa9c7970c4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
});
});
|