From e8197c7fe7828b74334a40a2af6469610556e063 Mon Sep 17 00:00:00 2001
From: Filipa Lacerda <filipa@gitlab.com>
Date: Mon, 20 Aug 2018 09:53:43 +0100
Subject: [PATCH] Moves job log spec files to the components folder

---
 .../javascripts/jobs/{ => components}/artifacts_block_spec.js | 2 +-
 spec/javascripts/jobs/{ => components}/commit_block_spec.js   | 2 +-
 spec/javascripts/jobs/{ => components}/empty_state_spec.js    | 2 +-
 spec/javascripts/jobs/{ => components}/erased_block_spec.js   | 2 +-
 spec/javascripts/jobs/{ => components}/header_spec.js         | 0
 .../jobs/{ => components}/job_details_mediator_spec.js        | 2 +-
 spec/javascripts/jobs/{ => components}/job_log_spec.js        | 2 +-
 spec/javascripts/jobs/{ => components}/job_store_spec.js      | 2 +-
 spec/javascripts/jobs/{ => components}/jobs_container_spec.js | 2 +-
 .../jobs/{ => components}/sidebar_detail_row_spec.js          | 0
 .../jobs/{ => components}/sidebar_details_block_spec.js       | 4 ++--
 .../javascripts/jobs/{ => components}/stages_dropdown_spec.js | 2 +-
 spec/javascripts/jobs/{ => components}/stuck_block_spec.js    | 2 +-
 spec/javascripts/jobs/{ => components}/trigger_value_spec.js  | 2 +-
 14 files changed, 13 insertions(+), 13 deletions(-)
 rename spec/javascripts/jobs/{ => components}/artifacts_block_spec.js (98%)
 rename spec/javascripts/jobs/{ => components}/commit_block_spec.js (96%)
 rename spec/javascripts/jobs/{ => components}/empty_state_spec.js (96%)
 rename spec/javascripts/jobs/{ => components}/erased_block_spec.js (95%)
 rename spec/javascripts/jobs/{ => components}/header_spec.js (100%)
 rename spec/javascripts/jobs/{ => components}/job_details_mediator_spec.js (96%)
 rename spec/javascripts/jobs/{ => components}/job_log_spec.js (94%)
 rename spec/javascripts/jobs/{ => components}/job_store_spec.js (94%)
 rename spec/javascripts/jobs/{ => components}/jobs_container_spec.js (97%)
 rename spec/javascripts/jobs/{ => components}/sidebar_detail_row_spec.js (100%)
 rename spec/javascripts/jobs/{ => components}/sidebar_details_block_spec.js (97%)
 rename spec/javascripts/jobs/{ => components}/stages_dropdown_spec.js (95%)
 rename spec/javascripts/jobs/{ => components}/stuck_block_spec.js (97%)
 rename spec/javascripts/jobs/{ => components}/trigger_value_spec.js (96%)

diff --git a/spec/javascripts/jobs/artifacts_block_spec.js b/spec/javascripts/jobs/components/artifacts_block_spec.js
similarity index 98%
rename from spec/javascripts/jobs/artifacts_block_spec.js
rename to spec/javascripts/jobs/components/artifacts_block_spec.js
index c544c6f3e89..a06d287b3fa 100644
--- a/spec/javascripts/jobs/artifacts_block_spec.js
+++ b/spec/javascripts/jobs/components/artifacts_block_spec.js
@@ -1,7 +1,7 @@
 import Vue from 'vue';
 import { getTimeago } from '~/lib/utils/datetime_utility';
 import component from '~/jobs/components/artifacts_block.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Artifacts block', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/commit_block_spec.js b/spec/javascripts/jobs/components/commit_block_spec.js
similarity index 96%
rename from spec/javascripts/jobs/commit_block_spec.js
rename to spec/javascripts/jobs/components/commit_block_spec.js
index f755a5042b5..e21fa9c2874 100644
--- a/spec/javascripts/jobs/commit_block_spec.js
+++ b/spec/javascripts/jobs/components/commit_block_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/commit_block.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Commit block', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/empty_state_spec.js b/spec/javascripts/jobs/components/empty_state_spec.js
similarity index 96%
rename from spec/javascripts/jobs/empty_state_spec.js
rename to spec/javascripts/jobs/components/empty_state_spec.js
index f8feb069fe0..dcc2b3d8a20 100644
--- a/spec/javascripts/jobs/empty_state_spec.js
+++ b/spec/javascripts/jobs/components/empty_state_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/empty_state.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Empty State', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/erased_block_spec.js b/spec/javascripts/jobs/components/erased_block_spec.js
similarity index 95%
rename from spec/javascripts/jobs/erased_block_spec.js
rename to spec/javascripts/jobs/components/erased_block_spec.js
index 7cf32e984a2..a4ae0c7c81e 100644
--- a/spec/javascripts/jobs/erased_block_spec.js
+++ b/spec/javascripts/jobs/components/erased_block_spec.js
@@ -1,7 +1,7 @@
 import Vue from 'vue';
 import { getTimeago } from '~/lib/utils/datetime_utility';
 import component from '~/jobs/components/erased_block.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Erased block', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/header_spec.js b/spec/javascripts/jobs/components/header_spec.js
similarity index 100%
rename from spec/javascripts/jobs/header_spec.js
rename to spec/javascripts/jobs/components/header_spec.js
diff --git a/spec/javascripts/jobs/job_details_mediator_spec.js b/spec/javascripts/jobs/components/job_details_mediator_spec.js
similarity index 96%
rename from spec/javascripts/jobs/job_details_mediator_spec.js
rename to spec/javascripts/jobs/components/job_details_mediator_spec.js
index ca5c9cf87e4..3e2fb7bfbbb 100644
--- a/spec/javascripts/jobs/job_details_mediator_spec.js
+++ b/spec/javascripts/jobs/components/job_details_mediator_spec.js
@@ -1,7 +1,7 @@
 import MockAdapter from 'axios-mock-adapter';
 import axios from '~/lib/utils/axios_utils';
 import JobMediator from '~/jobs/job_details_mediator';
-import job from './mock_data';
+import job from '../mock_data';
 
 describe('JobMediator', () => {
   let mediator;
diff --git a/spec/javascripts/jobs/job_log_spec.js b/spec/javascripts/jobs/components/job_log_spec.js
similarity index 94%
rename from spec/javascripts/jobs/job_log_spec.js
rename to spec/javascripts/jobs/components/job_log_spec.js
index 406f1c4ccc5..6a5b375a26c 100644
--- a/spec/javascripts/jobs/job_log_spec.js
+++ b/spec/javascripts/jobs/components/job_log_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/job_log.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Job Log', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/job_store_spec.js b/spec/javascripts/jobs/components/job_store_spec.js
similarity index 94%
rename from spec/javascripts/jobs/job_store_spec.js
rename to spec/javascripts/jobs/components/job_store_spec.js
index d00faf29d1e..0dad5111b32 100644
--- a/spec/javascripts/jobs/job_store_spec.js
+++ b/spec/javascripts/jobs/components/job_store_spec.js
@@ -1,5 +1,5 @@
 import JobStore from '~/jobs/stores/job_store';
-import job from './mock_data';
+import job from '../mock_data';
 
 describe('Job Store', () => {
   let store;
diff --git a/spec/javascripts/jobs/jobs_container_spec.js b/spec/javascripts/jobs/components/jobs_container_spec.js
similarity index 97%
rename from spec/javascripts/jobs/jobs_container_spec.js
rename to spec/javascripts/jobs/components/jobs_container_spec.js
index bf52e65cbc8..f3f8ff0d031 100644
--- a/spec/javascripts/jobs/jobs_container_spec.js
+++ b/spec/javascripts/jobs/components/jobs_container_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/jobs_container.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Artifacts block', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/sidebar_detail_row_spec.js b/spec/javascripts/jobs/components/sidebar_detail_row_spec.js
similarity index 100%
rename from spec/javascripts/jobs/sidebar_detail_row_spec.js
rename to spec/javascripts/jobs/components/sidebar_detail_row_spec.js
diff --git a/spec/javascripts/jobs/sidebar_details_block_spec.js b/spec/javascripts/jobs/components/sidebar_details_block_spec.js
similarity index 97%
rename from spec/javascripts/jobs/sidebar_details_block_spec.js
rename to spec/javascripts/jobs/components/sidebar_details_block_spec.js
index 21ef5650b80..ba19534dac2 100644
--- a/spec/javascripts/jobs/sidebar_details_block_spec.js
+++ b/spec/javascripts/jobs/components/sidebar_details_block_spec.js
@@ -1,7 +1,7 @@
 import Vue from 'vue';
 import sidebarDetailsBlock from '~/jobs/components/sidebar_details_block.vue';
-import job from './mock_data';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import job from '../mock_data';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Sidebar details block', () => {
   let SidebarComponent;
diff --git a/spec/javascripts/jobs/stages_dropdown_spec.js b/spec/javascripts/jobs/components/stages_dropdown_spec.js
similarity index 95%
rename from spec/javascripts/jobs/stages_dropdown_spec.js
rename to spec/javascripts/jobs/components/stages_dropdown_spec.js
index d3a5d48f56c..402289345aa 100644
--- a/spec/javascripts/jobs/stages_dropdown_spec.js
+++ b/spec/javascripts/jobs/components/stages_dropdown_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/stages_dropdown.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Artifacts block', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/stuck_block_spec.js b/spec/javascripts/jobs/components/stuck_block_spec.js
similarity index 97%
rename from spec/javascripts/jobs/stuck_block_spec.js
rename to spec/javascripts/jobs/components/stuck_block_spec.js
index 4e2108dfdfb..c320793b2be 100644
--- a/spec/javascripts/jobs/stuck_block_spec.js
+++ b/spec/javascripts/jobs/components/stuck_block_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/stuck_block.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Stuck Block Job component', () => {
   const Component = Vue.extend(component);
diff --git a/spec/javascripts/jobs/trigger_value_spec.js b/spec/javascripts/jobs/components/trigger_value_spec.js
similarity index 96%
rename from spec/javascripts/jobs/trigger_value_spec.js
rename to spec/javascripts/jobs/components/trigger_value_spec.js
index acf91510ed2..3d41a3cfac1 100644
--- a/spec/javascripts/jobs/trigger_value_spec.js
+++ b/spec/javascripts/jobs/components/trigger_value_spec.js
@@ -1,6 +1,6 @@
 import Vue from 'vue';
 import component from '~/jobs/components/trigger_block.vue';
-import mountComponent from '../helpers/vue_mount_component_helper';
+import mountComponent from '../../helpers/vue_mount_component_helper';
 
 describe('Trigger block', () => {
   const Component = Vue.extend(component);
-- 
2.30.9