From c3d217e6a08e67e16996ea5315ffdca7d3a57ed0 Mon Sep 17 00:00:00 2001 From: Linda Hanson <107373537+Linda-Hanson@users.noreply.github.com> Date: Fri, 28 Oct 2022 22:38:46 +0100 Subject: [PATCH] Update math.test.js --- test/unit/math.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/unit/math.test.js b/test/unit/math.test.js index aee2cf8..6ac6085 100644 --- a/test/unit/math.test.js +++ b/test/unit/math.test.js @@ -1,5 +1,5 @@ const mathM = require('../../math'); - +// integration test sum test.only('sum: expect 30', () => { const actualResult = mathM.add(20, 10) const expectResult = 30; @@ -11,21 +11,23 @@ test('sum: expect 45', () => { const expectResult = 45; expect(actualResult).toBe(expectResult) }); - +// integration test for subtraction test('subtract', () => { const actualResult = mathM.subtract(20, 10) const expectResult = 10; expect(actualResult).toBe(expectResult) }); - +// integration test for division test('divide', () => { const actualResult = mathM.divide(20, 10) const expectResult = 2; expect(actualResult).toBe(expectResult) }); +// integration test for multiplication test('multiply', () => { const actualResult = mathM.multiply(20, 10) const expectResult = 200; expect(actualResult).toBe(expectResult) }); +