From 68691ab7a68ae47641572fd443a22f4643daaaf8 Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 8 May 2020 16:54:31 +1000 Subject: [PATCH] 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]); + }); });