Delete function was creating a new array that contained only the key that was meant for deletion instead of everything else. The tests missed this since there was nothing that was asserting on the contents of the properties after a delete, just the number of items present.
Delete function was creating a new array that contained only the key that was meant for deletion instead of everything else. The tests missed this since there was nothing that was asserting on the contents of the properties after a delete, just the number of items present.