Hi all

Can anyone advise why do I have a test pending and maybe how to fix it ? I double checked in the walktrhough video, I believe my code is correct…

```
index_text.js
var assert = require("assert");
var Calculate = require('../index.js')
describe('Calculate', () => {
describe('.factorial', () => {
it('testing the output of 5! is equal to 120', () => {
//Setup
const inputNumber = 5;
const expectedResult = 120;
//Excercise
const result = Calculate.factorial(inputNumber);
//Verify
assert.equal(result, expectedResult)
});
it('testing the output of 3! is equal to 6', () => {
//Setup
const inputNumber = 3;
const expectedResult = 6;
//Excercise
const result = Calculate.factorial(inputNumber);
//VERIFY
assert.equal(result, expectedResult)
});
it('testing the output of 0! is equal to 1'), () => {
//Setup
const inputNumber = 0;
const expectedResult = 1;
//Excercise
const result = Calculate.factorial(inputNumber)
//Verify
assert.equal(result, expectedResult);
}
});
});
index.js
const Calculate = {
factorial(inputNumber){
if(inputNumber === 0) {
return 1;
}
for(let i = inputNumber - 1; i >= 1; i--){
inputNumber *= i;
}
return inputNumber;
}
}
module.exports = Calculate;
```

Calculate

.factorial

✓ testing the output of 5! is equal to 120

✓ testing the output of 3! is equal to 6

- testing the output of 0! is equal to 1

2 passing (6ms)

1 pending

$

Many thanks for your help