debian-mirror-gitlab/spec/frontend/notes/components/attachments_warning_spec.js
2023-04-23 21:23:45 +05:30

16 lines
504 B
JavaScript

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);
});
});