An open API service indexing awesome lists of open source software.

https://github.com/sfinx13/fizzbuzz

TDD Workshop - FizzBuzz
https://github.com/sfinx13/fizzbuzz

fizzbuzz javascript jest-tests

Last synced: 9 months ago
JSON representation

TDD Workshop - FizzBuzz

Awesome Lists containing this project

README

          

# FizzBuzz
Write a function that returns for a number between 1 to 100 :
- Returns an exception if number is not 1 and 100 inclusive
- "Fizz" instead of the number if multiple of 3
- "Buzz" instead of the number if multiple of 5
- "FizzBuzz" instead of the number so multiple of 3 and 5
- Returns the number

# Prerequisites
* Install Nodejs + NPM : https://nodejs.org/en/
* Install Framework Jest : https://jestjs.io/en/

# Running from command line with npm
```
npm test
```