Skip to content

Ali-Qasim/JS-Testing-With-Jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS Testing With Jest

Using Jest to unit test JS programs

Floor-Area Calculator

My grandmother asked me to help her calculate the floor area of a flat she's planning to move out of.

As is commonplace in the region, the measurements were given in feet and inches, so it wouldn't be completely straightforward to calculate in base-10 (our conventional human finger-counting system). This would be an especially tedious process when you have to calculate many rooms separately.

So, I decided to make an app for it!

This is the floor plan she gave me!

image

The results!

image