I am trying to run a test through jest. Test code below:
describe('multiply', () => {
test('multiplies two numbers', () => {
expect(calculator.multiply([2,4])).toBe(8);
});
My code
const multiply = function() {
let toBe = ([`0`] * [`0`]);
return toBe;
};
What am I doing wrong here? I am confused by my result. Thank you in advance.