Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/alert_management/components/system_notes/alert_management_system_note_spec.js')
-rw-r--r--spec/frontend/alert_management/components/system_notes/alert_management_system_note_spec.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/spec/frontend/alert_management/components/system_notes/alert_management_system_note_spec.js b/spec/frontend/alert_management/components/system_notes/alert_management_system_note_spec.js
deleted file mode 100644
index 65cfc600d76..00000000000
--- a/spec/frontend/alert_management/components/system_notes/alert_management_system_note_spec.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import { shallowMount } from '@vue/test-utils';
-import { GlIcon } from '@gitlab/ui';
-import SystemNote from '~/alert_management/components/system_notes/system_note.vue';
-import mockAlerts from '../../mocks/alerts.json';
-
-const mockAlert = mockAlerts[1];
-
-describe('Alert Details System Note', () => {
- let wrapper;
-
- function mountComponent({ stubs = {} } = {}) {
- wrapper = shallowMount(SystemNote, {
- propsData: {
- note: { ...mockAlert.notes.nodes[0] },
- },
- stubs,
- });
- }
-
- afterEach(() => {
- if (wrapper) {
- wrapper.destroy();
- wrapper = null;
- }
- });
-
- describe('System notes', () => {
- beforeEach(() => {
- mountComponent({});
- });
-
- it('renders the correct system note', () => {
- const noteId = wrapper.find('.note-wrapper').attributes('id');
- const iconName = wrapper.find(GlIcon).attributes('name');
-
- expect(noteId).toBe('note_1628');
- expect(iconName).toBe(mockAlert.notes.nodes[0].systemNoteIconName);
- });
- });
-});