Giter VIP home page Giter VIP logo

calc-app's Introduction

calc-app

Homework – due 2/8/21 by 8pm

Goal: Create a Calculator app & unit tests that can perform Add, Subtract, Multiply & Divide functions and verification.

  1. Create a new project “calc-app” / GitHub repo
  2. Bootstrap and extra creativity is not necessary in this homework
  3. Using JS Classes – implement your math logic
  4. Include the necessary Node.js dependencies in your package.json
    1. Use “npm install” to download all the Jest/testing functionality
  5. Add a test script (ie. calc.test.js) to your project
    1. Cover the 4 basic math calculations
  6. Each test must pass before you turn in the homework
  7. Commit the changes and send me a link to the repo when you’re done.

Important Packages to provide to get import to work.

npm install --save-dev babel-jest @babel/core @babel/preset-env jest

Create a babel.config.js which will allow import to work.

Here is the test results from our npm run test.

Time was 2.434 seconds. Jest Test Results

calc-app's People

Contributors

skohltfarber avatar

Watchers

 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.