Coder Social home page Coder Social logo

diy-kata's Introduction

DIY Kata

This repository is aimed at helping you get to grips with the basics of testing in JavaScript.

Your challenge is to populate the functions and then to write tests for those functions.

Instructions

Fork this repository and clone down your fork.

Change into the cloned folder, and add you and your partner's remotes to you your local.

Run npm install to install the necessary libraries required for Node.js to run.

There are two folders: /src and /__tests__. Both contain JS files named numerically. Start on the first file in /src and find the matching file in /test. On the curriculum materials on GitLab, you will find requirements that correspond to each one, explaining what the expected behaviour of each function should be, and what you should be asserting against in your tests. There is also a walkthrough for the first one, just to give you a bit of practice.

Once you've completed each function/test pair, run npm test -- yourFunctionName inside your cloned repo to check if your tests have worked.

Add, commit, push and swap pairing roles after each one. When you've done them all, both partners should create pull requests to this repository.

diy-kata's People

Contributors

harrim91 avatar joestephens avatar

Stargazers

 avatar

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.