How can I test my function calculateAverage will throw an error (console.error) when an empty array is passed?
calculateAverage
console.error
I\'m using Jest to test, but