Updating testing for radioTest with new radio buttons

This commit is contained in:
Max 2021-11-23 17:13:09 -05:00
parent 3b3af03d8f
commit c92112e07f

View file

@ -19,8 +19,7 @@ describe("radioQuestion.vue", () => {
"Question Text" "Question Text"
); );
const radioButtons = wrapper.findAllComponents('[data-test="radio"]'); const radioButtons = wrapper.findAllComponents('[data-test="radio"]');
expect(radioButtons[0].attributes("text")).toEqual("2023"); expect(radioButtons.length).toBe(3);
expect(radioButtons[2].attributes("text")).toEqual("2021");
expect(typeof wrapper.props().chooseAnswer).toBe("function"); expect(typeof wrapper.props().chooseAnswer).toBe("function");
}); });
}); });