From 92a05506dbb3db764cedaf6d8cf00c2c91be42c3 Mon Sep 17 00:00:00 2001 From: Jian Huang Date: Sun, 29 Mar 2020 22:21:13 -0400 Subject: [PATCH] Update given.js After remove these two special characters '@' and ' ' (space) from username and email, i don't have failed test cases on username and email. --- tests/steps/given.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/steps/given.js b/tests/steps/given.js index 933a4c1..7c79ed8 100644 --- a/tests/steps/given.js +++ b/tests/steps/given.js @@ -19,6 +19,9 @@ let an_authenticated_user = function* () { let username = `test-${firstName}-${lastName}-${chance.string({length: 8})}`; let password = random_password(); let email = `${firstName}-${lastName}@big-mouth.com`; + + username = username.replace(' ', '').replace('@', ''); + email = email.replace(' ', ''); let createReq = { UserPoolId : userpoolId, @@ -72,4 +75,4 @@ let an_authenticated_user = function* () { module.exports = { an_authenticated_user -}; \ No newline at end of file +};