From 2296379e02cc003e17f97dc502c5d122c559759c Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Mon, 29 Aug 2022 11:35:38 -0400 Subject: [PATCH] CSR-735 | Fix tests --- .../cash-or-insurance-question/cash-or-insurance-question.vue | 1 - .../list-button-horizontal/list-button-horizontal.spec.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue index 3c3ab112a..b2431406d 100644 --- a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue +++ b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue @@ -29,7 +29,6 @@ export default ({ get: function() { // Convert to CMS answer name from bool var cmsAnswerValue = this.modelValue ? "InsuranceAnswer" : "CashAnswer"; - // list-button-horizontal expects an array of values return cmsAnswerValue; }, set: function(newValue) { diff --git a/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js b/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js index 5c288f660..e74673c22 100644 --- a/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js +++ b/src/ux-components/list-button-horizontal/list-button-horizontal.spec.js @@ -194,7 +194,7 @@ describe("list-button-horizontal.vue", () => { }); wrapper.vm.handleCheckChange(); // Assert - expect(wrapper.emitted()["isCheckedChanged"][0]).toEqual([{value: "List Card Checkbox", checkValue: Boolean}]); + expect(wrapper.emitted()["isCheckedChanged"][0]).toEqual([{value: "List Card Checkbox", checkValue: Boolean, buttonId: undefined, checkValue: undefined}]); }); it("Should set checkValue data if selectedButtonIDs has value(s)", async () => { @@ -215,7 +215,7 @@ describe("list-button-horizontal.vue", () => { }, }); // Assert - expect(wrapper.componentVM.checkValue).toEqual("Car-Front"); + expect(wrapper.componentVM.checkValue).toEqual(["Car-Front"]); }); it("Should run handleCheckChange if selectingInitiatesLoad is false and handleInputChange is triggered", async () => {