Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Adding suite of tests for the e-mail validation field in the users model #799

Merged
merged 1 commit into from
Aug 14, 2015

Conversation

lirantal
Copy link
Member

This further strengthens our test suites from 21 tests to 35 already!

image

@lirantal lirantal self-assigned this Aug 13, 2015
@lirantal lirantal added this to the 0.4.x milestone Aug 13, 2015
@trainerbill
Copy link
Contributor

@lirantal Not that having more tests is a bad thing, but we are using validator so wouldn't this be overkill? Guessing that module has the proper tests already. Unless there is a way to add email outside of validator, which would probably be bad. The more tests we have the longer CI takes.

@codydaig
Copy link
Member

LGTM.

@lirantal
Copy link
Member Author

@trainerbill that's exactly the point - imagine a scenario that someone in the future will replace the validator package with something else? or that we upgrade to a newer validator package? these tests ensure that the expected behavior is always maintained.

Also I wouldn't worry that much about tests time and rather would aim for a high code coverage.

lirantal added a commit that referenced this pull request Aug 14, 2015
Adding suite of tests for the e-mail validation field in the users model
@lirantal lirantal merged commit d9a8647 into meanjs:master Aug 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants