Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split test/validators.js file to separate sub files #1791

Open
Marcholio opened this issue Oct 14, 2021 · 3 comments
Open

Split test/validators.js file to separate sub files #1791

Marcholio opened this issue Oct 14, 2021 · 3 comments

Comments

@Marcholio
Copy link
Contributor

Hi, the main test file for validator.js is currently 11k+ lines long. What do you think, could/should it be split to multiple sub files by validator for example?

So the end result could be something like:

/test
  validators.js
  /validators
    isLicensePlate.js
    isVat.js
    etc...

Would that improve the readibility of the test cases?

@tux-tn
Copy link
Member

tux-tn commented Oct 14, 2021

Thank you for your suggestion @Marcholio ! I totally agree with the idea

@Marcholio
Copy link
Contributor Author

Created a PR addressing this @tux-tn

@tux-tn
Copy link
Member

tux-tn commented Oct 16, 2021

@Marcholio great job ! Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants