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

Added fake.emailAddress #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcodejongh
Copy link

Exposed generation of fake email address.

So you don't need to generate a whole user just for the email address.

@@ -138,6 +138,9 @@ var randomElement = function(array) {
return array[Math.floor(Math.random() * array.length)];
};

var generateEmailAddress = function (username, domain) {
return (name + '@' + domain).toLowerCase();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't you intend for the parameter name to match the usage?

var generateEmailAddress = function (name, domain) {

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I did, noticed the mistake myself and amended my commit. But for some reason the push timed out. Check again.

@apendua
Copy link
Member

apendua commented Apr 14, 2015

@marcodejongh A useful thing! Thank you for this one.

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

Successfully merging this pull request may close these issues.

3 participants