From 3236ae156ccc536c34435b134e6232d1f930bc3c Mon Sep 17 00:00:00 2001 From: Benjo Kho Date: Sat, 7 Aug 2021 14:54:14 +0800 Subject: [PATCH] Revert edits --- 03_reverseString/reverseString.js | 2 +- 03_reverseString/reverseString.spec.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/03_reverseString/reverseString.js b/03_reverseString/reverseString.js index ad79ce0..5ce90ac 100644 --- a/03_reverseString/reverseString.js +++ b/03_reverseString/reverseString.js @@ -1,5 +1,5 @@ const reverseString = function(str) { - let newStr = str.split("").reverse().join(""); + }; module.exports = reverseString; diff --git a/03_reverseString/reverseString.spec.js b/03_reverseString/reverseString.spec.js index b51c50e..8adb887 100644 --- a/03_reverseString/reverseString.spec.js +++ b/03_reverseString/reverseString.spec.js @@ -5,14 +5,14 @@ describe('reverseString', () => { expect(reverseString('hello')).toEqual('olleh'); }); - test('reverses multiple words', () => { + test.skip('reverses multiple words', () => { expect(reverseString('hello there')).toEqual('ereht olleh') }) - test('works with numbers and punctuation', () => { + test.skip('works with numbers and punctuation', () => { expect(reverseString('123! abc!')).toEqual('!cba !321') }) - test('works with blank strings', () => { + test.skip('works with blank strings', () => { expect(reverseString('')).toEqual('') }) });