From 5269a14e7efdceae90985fb96d4467f0af8471db Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Sun, 24 Sep 2023 11:22:36 -0400 Subject: [PATCH] Remove arrays from solution multiplication tests --- 08_calculator/solution/calculator-solution.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/08_calculator/solution/calculator-solution.spec.js b/08_calculator/solution/calculator-solution.spec.js index 453707c..e4f6dd0 100644 --- a/08_calculator/solution/calculator-solution.spec.js +++ b/08_calculator/solution/calculator-solution.spec.js @@ -40,11 +40,11 @@ describe('sum', () => { describe('multiply', () => { test('multiplies two numbers', () => { - expect(calculator.multiply([2, 4])).toBe(8); + expect(calculator.multiply(2, 4)).toBe(8); }); test('multiplies several numbers', () => { - expect(calculator.multiply([2, 4, 6, 8, 10, 12, 14])).toBe(645120); + expect(calculator.multiply(2, 4, 6, 8, 10, 12, 14)).toBe(645120); }); });