From bbb196244551c2cc6dcad7c4973d7b26fc1b26f5 Mon Sep 17 00:00:00 2001 From: Adrian Date: Mon, 23 Dec 2024 13:10:41 -0600 Subject: [PATCH 1/2] remove code --- words/words.js | 5 +---- words/words.test.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/words/words.js b/words/words.js index 708da6d..f24697a 100644 --- a/words/words.js +++ b/words/words.js @@ -2,12 +2,9 @@ function returnPlus3(a) { return a + 3 } -function reverse(array) { - return array.reverse();; -} function hello(a) { return a === 5 ? "hello!" : "nope" } -module.exports = {returnPlus3, reverse}; \ No newline at end of file +module.exports = {returnPlus3}; \ No newline at end of file diff --git a/words/words.test.js b/words/words.test.js index 8ef1961..4bb9e50 100644 --- a/words/words.test.js +++ b/words/words.test.js @@ -1,8 +1,5 @@ -const {returnPlus3, reverse, hello} = require('./words'); +const {returnPlus3, hello} = require('./words'); -test("returns the given array reversed", function(){ - expect(reverse([1, 2, 3])).toEqual([3, 2, 1]) -}) test("returns + 3 of whatever you give it", function(){ expect(returnPlus3(4)).toBe(7) From b6e2bc56a0ba0cd2e03c13a3689f3b0f849a517a Mon Sep 17 00:00:00 2001 From: Adrian Date: Mon, 23 Dec 2024 13:15:54 -0600 Subject: [PATCH 2/2] remove test --- words/words.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/words/words.test.js b/words/words.test.js index 4bb9e50..7934b86 100644 --- a/words/words.test.js +++ b/words/words.test.js @@ -1,6 +1,6 @@ const {returnPlus3, hello} = require('./words'); -test("returns + 3 of whatever you give it", function(){ - expect(returnPlus3(4)).toBe(7) -}) +// test("returns + 3 of whatever you give it", function(){ +// expect(returnPlus3(4)).toBe(7) +// })