From 74cd46337dd94c9edfdb3419d0504be7a97d40bd Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Mon, 27 Jun 2022 13:53:08 -0400 Subject: [PATCH] Remove unneeded test after removing unneeded code. --- .../textbox-question/textbox-question.spec.js | 34 ++----------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/src/common-components/textbox-question/textbox-question.spec.js b/src/common-components/textbox-question/textbox-question.spec.js index 48f9a3a8e..b830b9783 100644 --- a/src/common-components/textbox-question/textbox-question.spec.js +++ b/src/common-components/textbox-question/textbox-question.spec.js @@ -15,7 +15,7 @@ const maska = jest.fn(); describe("textboxQuestion.vue", () => { it("Should render a text input", async () => { - // Arrange + // Arrange const wrapper = shallowMount(textboxQuestion, { global: { directives: { @@ -53,35 +53,7 @@ describe("textboxQuestion.vue", () => { expect(label.text()).toContain(questionText); }); - - it("Should render the 'questionText' data value with '⁠' after the first character of each word in the label text when disableAutoFill is true.", async () => { - // Arrange - const wrapper = shallowMount(textboxQuestion, { - global: { - directives: { - maska: maska, - } - }, - propsData: { - disableAutoFill: true, - }, - mixins: [mockMixin] - }); - // Mock CMS content ... - // Trust me, the below instance of the string "Q⁠uestion Text" actually has the ⁠ in it. You just can't see it - // Don't believe me? Copy and paste it into Google. Then inspect the search field element in Dev Tools, - // you will see "Q⁠uestion T⁠ext" - const expectedQuestionText = "Q⁠uestion T⁠ext"; - - // Act - const label = wrapper.find("label"); - - // Assert - expect(label.text()).toContain(expectedQuestionText); - - }); - it("Should return input id as the id of the input field", async () => { // Arrange const wrapper = shallowMount(textboxQuestion, { @@ -103,7 +75,7 @@ describe("textboxQuestion.vue", () => { expect(input.attributes().id).toEqual("input ID"); }); - + it("Should render the 'questionText' data value as the aria-label attribute.", async () => { // Arrange @@ -193,6 +165,6 @@ describe("textboxQuestion.vue", () => { // Assert expect(wrapper.vm.handleChange).toHaveBeenCalled; - }); + }); });