From 33903ecc61873044589df69c4215999aa064949f Mon Sep 17 00:00:00 2001 From: volodymyr Date: Thu, 16 Nov 2023 17:05:28 +0200 Subject: [PATCH] refactor: folder for popup changed [WTEL-3894] --- .../__tests__/WtPopup.spec.js | 9 +++ .../wt-save-failed-popup.vue | 70 +++++++++++++++++++ .../__tests__/WtPopup.spec.js | 1 - src/{utils => scripts}/saveAsJSON.js | 0 4 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js create mode 100644 src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue rename src/{utils => scripts}/saveAsJSON.js (100%) diff --git a/src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js b/src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js new file mode 100644 index 00000000..c1692b30 --- /dev/null +++ b/src/components/on-demand/wt-save-failed-popup/__tests__/WtPopup.spec.js @@ -0,0 +1,9 @@ +import { shallowMount } from '@vue/test-utils'; +import WtSaveFailedPopup from '../wt-save-failed-popup.vue'; + +describe('WtSaveFailedPopup', () => { + it('renders a component', () => { + const wrapper = shallowMount(WtSaveFailedPopup); + expect(wrapper.classes('wt-save-failed-popup')).toBe(true); + }); +}); diff --git a/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue b/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue new file mode 100644 index 00000000..1f15e5c7 --- /dev/null +++ b/src/components/on-demand/wt-save-failed-popup/wt-save-failed-popup.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/components/wt-save-failed-popup/__tests__/WtPopup.spec.js b/src/components/wt-save-failed-popup/__tests__/WtPopup.spec.js index 3c0316c8..c1692b30 100644 --- a/src/components/wt-save-failed-popup/__tests__/WtPopup.spec.js +++ b/src/components/wt-save-failed-popup/__tests__/WtPopup.spec.js @@ -7,4 +7,3 @@ describe('WtSaveFailedPopup', () => { expect(wrapper.classes('wt-save-failed-popup')).toBe(true); }); }); -`` diff --git a/src/utils/saveAsJSON.js b/src/scripts/saveAsJSON.js similarity index 100% rename from src/utils/saveAsJSON.js rename to src/scripts/saveAsJSON.js