Skip to content

Instantly share code, notes, and snippets.

@justinbmeyer
Last active January 8, 2020 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinbmeyer/6aeb89228539aac98d26d00cd8ad5914 to your computer and use it in GitHub Desktop.
Save justinbmeyer/6aeb89228539aac98d26d00cd8ad5914 to your computer and use it in GitHub Desktop.

Hello!

Thank you for applying to ROLE.

In this take home exercise, you will test that one of the YumCommerce endpoints is returning data successfully.
While we suggest particular technologies (mocha), you can build a similar test script with the technology you are most comfortable with.

  1. Create a github repo
  2. Setup a nodejs project
  3. Create a mocha test script that runs on npm test
  4. Test that https://dev-commerce.yum-poc.com/v1/stores/KFC0001/menu is returning a 200 status code
    • You must use Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjExMDIwYTczIn0.eyJjdXN0b21lcl9pZCI6ImY4OTlkMjAwLTIzOTMtNDA4Zi1iMDdjLWRjNjQ3ZDMyZWUyOCIsInNjb3BlIjoiZnVsbF9zY29wZSIsImlhdCI6MTU2OTI2MzI0MSwiYXVkIjoidGVzdF9hdWRpZW5jZSIsImlzcyI6ImFwaWdlZSJ9.YvtZ6waTHKArXic9YOhpP0cMV-lWvBIFo0sv-2C9YkGFk7WHZJweANYn35fKa0X9imIxgNUPKLpSOZbrWLYpCP3-KUxNPfZAXbVk7LTvpQT0wtQJON5q5uYFw284oKF482fgz8okoSj4sWPiH3fWu_tuwoHx_ZqAJzhAOkUy8gDHHBNLzeJbFUCTi90XuT_cLDo7Hsrhn_txQf3C4T5o2hNrXFTIuMbrvv05namiyWbvP50eZ9Ts1Xs5yXTC8CygsuCJJnk6nqL03Tn5cHksb2hjJPP22ZvCcbEV50auv60M9VKBOONzzLMbGKLNzUkIbWmF82twAD0gg77aTzp2Iw as the Authorization header.

Make as zip file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment