From 642c7252d4e6d4b7ae1d70e9074b56c30e719fc3 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Tue, 16 Apr 2019 14:54:19 +0100 Subject: [PATCH] Move import projects karma specs to jest Improvements to the stability/validity of the specs. --- .../components/import_projects_table.vue | 2 +- .../import_projects/store/index.js | 2 + .../vue_shared/components/select2_select.vue | 2 +- .../components/import_projects_table_spec.js | 185 +++++++++++++++++ .../imported_project_table_row_spec.js | 25 ++- .../provider_repo_table_row_spec.js | 90 +++++---- .../import_projects/store/actions_spec.js | 4 +- .../components/import_projects_table_spec.js | 188 ------------------ 8 files changed, 256 insertions(+), 242 deletions(-) create mode 100644 spec/frontend/import_projects/components/import_projects_table_spec.js rename spec/{javascripts => frontend}/import_projects/components/imported_project_table_row_spec.js (77%) rename spec/{javascripts => frontend}/import_projects/components/provider_repo_table_row_spec.js (54%) rename spec/{javascripts => frontend}/import_projects/store/actions_spec.js (98%) delete mode 100644 spec/javascripts/import_projects/components/import_projects_table_spec.js diff --git a/app/assets/javascripts/import_projects/components/import_projects_table.vue b/app/assets/javascripts/import_projects/components/import_projects_table.vue index 777f8fa6691..00eb0afb3bf 100644 --- a/app/assets/javascripts/import_projects/components/import_projects_table.vue +++ b/app/assets/javascripts/import_projects/components/import_projects_table.vue @@ -74,7 +74,7 @@ export default {
diff --git a/app/assets/javascripts/import_projects/store/index.js b/app/assets/javascripts/import_projects/store/index.js index f666e2ebf33..ff1fd1e598e 100644 --- a/app/assets/javascripts/import_projects/store/index.js +++ b/app/assets/javascripts/import_projects/store/index.js @@ -7,6 +7,8 @@ import mutations from './mutations'; Vue.use(Vuex); +export { state, actions, getters, mutations }; + export default () => new Vuex.Store({ state: state(), diff --git a/app/assets/javascripts/vue_shared/components/select2_select.vue b/app/assets/javascripts/vue_shared/components/select2_select.vue index 3074ea859cc..6d2612556ff 100644 --- a/app/assets/javascripts/vue_shared/components/select2_select.vue +++ b/app/assets/javascripts/vue_shared/components/select2_select.vue @@ -1,6 +1,6 @@