From 68691ab7a68ae47641572fd443a22f4643daaaf8 Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 8 May 2020 16:54:31 +1000 Subject: [PATCH 1/3] Added same type test to removeFromArray --- removeFromArray/removeFromArray.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/removeFromArray/removeFromArray.spec.js b/removeFromArray/removeFromArray.spec.js index 28c744c..f60239a 100644 --- a/removeFromArray/removeFromArray.spec.js +++ b/removeFromArray/removeFromArray.spec.js @@ -19,4 +19,7 @@ describe('removeFromArray', function() { xit('works with strings', function() { expect(removeFromArray(["hey", 2, 3, "ho"], "hey", 3)).toEqual([2, "ho"]); }); + xit('only removes same type', function() { + expect(removeFromArray([1, 2, 3], "1", 3)).toEqual([1, 2]); + }); }); From 3758497cb25d28bfe4955d3ab6cdfc67a72423b4 Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 8 May 2020 16:56:55 +1000 Subject: [PATCH 2/3] Added blank string test to reverseString --- reverseString/reverseString.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reverseString/reverseString.spec.js b/reverseString/reverseString.spec.js index e48840c..fe135e9 100644 --- a/reverseString/reverseString.spec.js +++ b/reverseString/reverseString.spec.js @@ -12,4 +12,7 @@ describe('reverseString', function() { xit('works with numbers and punctuation', function() { expect(reverseString('123! abc!')).toEqual('!cba !321') }) + xit('works with blank strings', function() { + expect(reverseString('')).toEqual('') + }) }); From 5817ea2140e504cc036bc04f8798409ae36ba839 Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 8 May 2020 16:59:37 +1000 Subject: [PATCH 3/3] Added blank string test to repeatString --- repeatString/repeatString.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repeatString/repeatString.spec.js b/repeatString/repeatString.spec.js index 27c9933..7124484 100644 --- a/repeatString/repeatString.spec.js +++ b/repeatString/repeatString.spec.js @@ -27,4 +27,7 @@ describe('repeatString', function() { was randomaly generated. */ expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number); }); + xit('works with blank strings', function() { + expect(repeatString('', 10)).toEqual(''); + }); });