Giter Site home page Giter Site logo

unit-testing-functions's Introduction

Explorer Mode

  1. Fork this repository by clicking the fork button on the upper right corner of this page. This will copy the repository on to your GitHub account.
  2. Clone the forked version of the repository. When you copy the clone URL it should have your github username in it not TIY-Austin-Front-End-Engineering.
  3. Inside of your cloned project directory run npm install.
  4. Read through the functions.js file in your cloned repo. For each one of the functions described you should do the following:
  5. Write comments that describe the arguments that are getting passed into the function (inputs). For each argument include... * the type of data (string, number, boolean, array, object) that it should be * one example valid value that could be passed in to that argument
  6. Write comments that describe the return value of the function, what type should it be?
  7. Add, commit, and push your code
  8. Create a new file to test that function inside of the test directory. Write out at least three unit tests for the function.
  9. Add, commit, and push your code
  10. Write out comments that describe how to implement the function. How will you use the provided inputs to achieve the desired output?
  11. Write code to implement the function.
  12. Test your code against your unit tests by running npm test. All of your tests should pass.
  13. Test your code against the instructor provided unit tests by running npm run instructor-tests. All of the tests should pass.
What to Submit
  • Link:
    • A link to a repo containing:
      • index.html
      • main.js
      • .surgeignore with contents of !node_modules/
  • Notes:
    • Your confidence level for this assignment, 0-5. (0 is no confidence, 5 is master)
    • Less than 5? Submit 1 question and 1 answer on Breadcrumbs and include a link to them.
    • 5? Great! Submit 2 answers on Breadcrumbs and include a link to them.
    • Did you complete at least "Explorer Mode"?
    • If no, briefly explain why not.
    • If yes, how far past Explorer did you get?

unit-testing-functions's People

Contributors

alarner avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.