Skip to content

acabala/tdd-by-example-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDD By Example with Mocha and TypeScript

This repository is an implementation of TDD process that uses TypeScript and Mocha to create example working Money Wallet.

Based on TDD By Example by Kent Beck

Todos:

  • 5 USD + 10 CHF = 10 USD (at USD:CHF=2:1)
  • 5 USD + 5 USD = 10 USD
  • 5 USD * 2 = 10 USD
  • make amount private
  • no side effects
  • what about roundings?
  • compare different currencies
  • add equals() method
  • equal with null value
  • equals with object
  • 5 CHF * 2 = 10 CHF
  • multiply different currencies
  • move money to factory method
  • check currency

About

Typescript implementation of 'TDD by example' (Kent Beck)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published