Closed user512 closed 6 years ago
I am not quite sure if the current setup is intentional but I know added email in generateHeader
will resolve this problem for me, happy to submit a PR if the above direction is correct.
Hi @user512 yup! Would be great if you could raise a PR for that.
Ideal would be:
scrips/generateHeader.js
to add the email fieldcreateUser
test/utils/test-environment.js
and integration test in test/integration/userFlow.test.js
👍 will open a PR today to patch genereteHeader
and add test.
Great, thank you!
genereteHeader.js
and added test in userFlow.test.js
Describe the bug
Initial setup cannot run all test cases in development email was missing in generate-auth-header to prevent first time developer to run
createUser
To Reproduce
yarn generate-auth-header
Expected behavior
By using
generate-auth-header
, developer should be able to createUser Suggestion, add an email placeholder in https://github.com/freeCodeCamp/open-api/blob/40de4e31d1121dfa70519e91a495ccefc0613582/scripts/generateHeader.js#L6