bendrucker / angular-credit-cards

Angular directives for parsing and validating credit card inputs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable validator for testing purpose

Geddeon opened this issue · comments

commented

In our project we do have testing CC number, which appears to be invalid with your library.
So, is that possible to disable validators on dev environment for testing purposes?

No, there's no feature for that and you'll need to consider how to implement it yourself with a mock or maybe by not loading the module altogether if you'd like to allow invalid data.