Giter Site home page Giter Site logo

sogekata's Introduction

SoGe Kata

CircleCI Greenkeeper badge

Javascript Kata destiné a émuler le retrait d'argent d un compte existant Pour réaliser ce kata les outils suivant ont ete utilisés:

  • cucumber : Pour parser la feature withdraw contenant les mots clefs Given, When, Then.
  • eslint: Pour s'assurer que l'ecriture du code respecte des conventions précises
  • chai: Pour les assertions lors d'un test

Le sujet du kata

Feature: Withdraw from account
  As a client of the bank
  I want to withdraw money from my account
  In order to have cash

  Scenario: An existing client withdraws from his account
      Given an existing client named "pierre-jean" with 100.0 EUR in his account
      When he withdraws 10.0 EUR from his account
      Then the new balance is 90.0 EUR

Principe respectés

Voici les principes qui ont été respectés:

  • Nommage des classes
  • Imutabilité
  • BDD

Installation

  $ git clone https://github.com/maissani/sogekata.git
  $ cd sogekata
  $ npm install

Usage

  $ npm test

The result should be like this

  > [email protected] test C:\Users\windowsusername\Documents\Devel\Sogekata // ie: I was on windows as soon as i made this kata
  > cucumber-js --format summary

  1 scenario (1 passed)
  3 steps (3 passed)
  0m00.001s

sogekata's People

Contributors

maissani avatar greenkeeper[bot] avatar dependabot[bot] 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.