From d6c7c38e85a751bddb28eabef7754063b4ddb5ab Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 6 Dec 2021 17:04:12 -0500 Subject: [PATCH] ut --- .../radio-question/radio-question.spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/common-components/radio-question/radio-question.spec.js b/src/common-components/radio-question/radio-question.spec.js index 0187888bc..1583a7be8 100644 --- a/src/common-components/radio-question/radio-question.spec.js +++ b/src/common-components/radio-question/radio-question.spec.js @@ -5,16 +5,15 @@ import { getMountOptions } from "@/helpers/unit-test-helper"; describe("radioQuestion.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 () => { // Arrange - const chooseAnswer = jest.fn(); - chooseAnswer.mockImplementation((answer) => { - mockData.data.answer = answer; - }); const mockData = { - chooseAnswer: chooseAnswer, + chooseAnswer: jest.fn(), data: { answer: null } } + mockData.chooseAnswer.mockImplementation((answer) => { + mockData.data.answer = answer; + }); const mountOptions = getMountOptions(mockData);