Skip to content

Commit

Permalink
Updates cvv test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wjames111 committed Nov 19, 2024
1 parent e7e389d commit 929aa54
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})
})
})
Expand Down

0 comments on commit 929aa54

Please sign in to comment.