debian-mirror-gitlab/spec/frontend/notes/components/attachments_warning_spec.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
504 B
JavaScript
Raw Normal View History

2023-04-23 21:23:45 +05:30
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);
});
});