From 929aa54cb2d8b265736c09df08990006109af79b Mon Sep 17 00:00:00 2001 From: wjames111 Date: Tue, 19 Nov 2024 15:11:22 -0500 Subject: [PATCH] Updates cvv test. --- .../existingPaymentMethods.component.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.spec.js b/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.spec.js index 128ab6275..38aa3a752 100644 --- a/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.spec.js +++ b/src/app/checkout/step-2/existingPaymentMethods/existingPaymentMethods.component.spec.js @@ -365,9 +365,15 @@ describe('checkout', () => { }) it('should call enableContinue with the correct validity state', () => { + self.controller.creditCardPaymentForm.securityCode.$viewValue = '123' self.controller.addCustomValidators() self.controller.$scope.$apply() expect(self.controller.enableContinue).toHaveBeenCalledWith({ $event: true }) + + self.controller.creditCardPaymentForm.securityCode.$viewValue = '12345' + self.controller.addCustomValidators() + self.controller.$scope.$apply() + expect(self.controller.enableContinue).toHaveBeenCalledWith({ $event: false }) }) }) })