Coder Social home page Coder Social logo

date-validator-tdd-'s Introduction

karma-jasmine-seed

To use the seed:

  1. Clone the project using git clone https://github.com/bmbarker90/karma-jasmine-seed {folder}, replacing folder with the folder name you would like to give it
  2. Set the remote to your own repo url git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
  3. Run npm install
  4. We have provided 3 files for you:
  • src/index.html for all of your HTML code
  • src/index.js to start your JS code
  • tests/test.spec.js to write your tests
  • You are welcome to add more JS files in /src and more test files in /test
  1. To run tests, run npm test.

Best practices

  1. Write a describe for each function that you would like to test
  2. Pure functions are the easiest to test. Pure functions are functions that, given the same inputs, will always produce the same output
  3. Karma will watch changes to your files. This means that if you keep your terminal window open, it will re-run your tests any time you change your files!

date-validator-tdd-'s People

Watchers

 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.