Skip to content

Commit

Permalink
Fix bug with user gen function
Browse files Browse the repository at this point in the history
email was being created by faker with uppercase letters, which was causing problems in functions using toLowerCase(). To fix, update genUserOptions function to create an email that is already lower case.
  • Loading branch information
deduced committed May 10, 2021
1 parent d16ffed commit f993ba3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/dist/test-utils/factories.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/dist/test-utils/factories.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/src/test-utils/factories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function genUserOptions() {
const lastName = faker.name.lastName().toLowerCase();
const fullName = `${firstName}_${lastName}`;
const password = faker.internet.password();
const email = faker.internet.email();
const email = faker.internet.email().toLowerCase();

return {
username: fullName,
Expand Down

0 comments on commit f993ba3

Please sign in to comment.