From 3b3af03d8f336b062cf431d4bd8d2e2978197440 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 23 Nov 2021 16:54:34 -0500 Subject: [PATCH] Adjusting unit test for new radio --- src/ux-components/radio/radio.spec.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ux-components/radio/radio.spec.js b/src/ux-components/radio/radio.spec.js index 35ddfdab7..0fcb8e701 100644 --- a/src/ux-components/radio/radio.spec.js +++ b/src/ux-components/radio/radio.spec.js @@ -2,22 +2,21 @@ import { shallowMount } from "@vue/test-utils"; import radio from "./radio"; describe("radio.vue", () => { - it("Should render the 'text' prop value as a span value for the radio button label and add the 'value' prop value as the radio button value and id.", () => { + it("Should render the 'radioID' prop value as a span value for the radio button label.", () => { // Act const wrapper = shallowMount(radio, { propsData: { - value: "2023", - text: "12", + radioID: "2023", + groupName: "TestGroup" }, }); // Assert - expect(wrapper.find("span").text()).toEqual("12"); expect(wrapper.find("input").attributes()).toEqual({ - class: "position-absolute opacity-0", id: "2023", type: "radio", value: "2023", - }); + name: "TestGroup", + }) }); });