From db33f316482ab86e6411e18c00cf6f55fb70cbc7 Mon Sep 17 00:00:00 2001 From: bmauger Date: Mon, 13 Dec 2021 17:11:47 -0500 Subject: [PATCH] WIP updating component names and unit tests. --- .../button-question.spec.js} | 6 +-- .../button-question.vue} | 10 ++-- src/layouts/component-test/component-test.vue | 36 ++++--------- .../year-question/year-question.spec.js | 2 +- .../year-question/year-question.vue | 6 +-- src/styles/common-button-styles.scss | 29 ---------- .../list-button/list-button.spec.js | 48 ++++++++++++++++- src/ux-components/list-button/list-button.vue | 53 ++++++++----------- src/ux-components/radio/radio.spec.js | 47 ---------------- src/ux-components/radio/radio.vue | 46 ---------------- 10 files changed, 91 insertions(+), 192 deletions(-) rename src/common-components/{radio-question/radio-question.spec.js => button-question/button-question.spec.js} (80%) rename src/common-components/{radio-question/radio-question.vue => button-question/button-question.vue} (84%) delete mode 100644 src/ux-components/radio/radio.spec.js delete mode 100644 src/ux-components/radio/radio.vue diff --git a/src/common-components/radio-question/radio-question.spec.js b/src/common-components/button-question/button-question.spec.js similarity index 80% rename from src/common-components/radio-question/radio-question.spec.js rename to src/common-components/button-question/button-question.spec.js index de6458122..4f7d3d342 100644 --- a/src/common-components/radio-question/radio-question.spec.js +++ b/src/common-components/button-question/button-question.spec.js @@ -1,10 +1,10 @@ import { shallowMount } from "@vue/test-utils"; -import radioQuestion from "@/common-components/radio-question/radio-question"; +import buttonQuestion from "@/common-components/button-question/button-question"; -describe("radioQuestion.vue", () => { +describe("buttonQuestion.vue", () => { it("Should render the 'questionText' prop value as a span value for the radio question and the 'answer' values should render as text values for radio components.", async () => { // Act - const wrapper = shallowMount(radioQuestion); + const wrapper = shallowMount(buttonQuestion); await wrapper.setProps({ questionText: "Question Text", answers: ["2023", "2022", "2021"], diff --git a/src/common-components/radio-question/radio-question.vue b/src/common-components/button-question/button-question.vue similarity index 84% rename from src/common-components/radio-question/radio-question.vue rename to src/common-components/button-question/button-question.vue index 36f130e9f..78b75f3ea 100644 --- a/src/common-components/radio-question/radio-question.vue +++ b/src/common-components/button-question/button-question.vue @@ -1,5 +1,5 @@