From 985577202aa90c324032c2912ece343c411a61d1 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Tue, 15 Aug 2023 15:59:22 -0400 Subject: [PATCH] Check for closing modal as well. --- .../customer-details-modal-question.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layouts/review/review-sections/customer-review/customer-details-modal-question/customer-details-modal-question.spec.js b/src/layouts/review/review-sections/customer-review/customer-details-modal-question/customer-details-modal-question.spec.js index b87653c73..0368effff 100644 --- a/src/layouts/review/review-sections/customer-review/customer-details-modal-question/customer-details-modal-question.spec.js +++ b/src/layouts/review/review-sections/customer-review/customer-details-modal-question/customer-details-modal-question.spec.js @@ -46,6 +46,7 @@ describe("Customer Details Modal", () => { // Assert expect(wrapper.vm.dispatchStoreAction).toHaveBeenCalled(); + expect(wrapper.vm.closeModal).toHaveBeenCalled(); }); test("Should not push to store if no fields have changed", async () => { @@ -64,6 +65,7 @@ describe("Customer Details Modal", () => { // Assert expect(wrapper.vm.dispatchStoreAction).not.toHaveBeenCalled(); + expect(wrapper.vm.closeModal).toHaveBeenCalled(); }); });