1 import removeIndex from './removeIndex';
3 describe('removeIndex()', () => {
4 it('removes item at a given index from an array', () => {
5 const output = removeIndex(['a', 'b', 'c', 'd', 'e'], 2);
6 const expected = ['a', 'b', 'd', 'e'];
7 expect(output).toEqual(expected);