"Fizz" to the array instead of the number"Buzz" to the array instead of the number"FizzBuzz" to the array instead of the numberfizzBuzz should be a function.
testString: assert(typeof fizzBuzz=='function');
- text: fizzBuzz() should return an Array.
testString: assert(Array.isArray(fizzBuzz())==true);
- text: Numbers divisible by only 3 should return "Fizz".
testString: assert.equal(fizzBuzz()[2], "Fizz");
- text: Numbers divisible by only 5 should return "Buzz".
testString: assert.equal(fizzBuzz()[99], "Buzz");
- text: Numbers divisible by both 3 and 5 should return "FizzBuzz".
testString: assert.equal(fizzBuzz()[89], "FizzBuzz");
- text: Numbers not divisible by either 3 or 5 should return the number itself.
testString: assert.equal(fizzBuzz()[12], 13);
```