Added same type test to removeFromArray

This commit is contained in:
Roger 2020-05-08 16:54:31 +10:00
parent c0d736a524
commit 68691ab7a6
1 changed files with 3 additions and 0 deletions

View File

@ -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]);
});
});