diff --git a/src/arrayReverse.test.js b/src/arrayReverse.test.js index cf8ac47..e4f8eda 100644 --- a/src/arrayReverse.test.js +++ b/src/arrayReverse.test.js @@ -8,13 +8,20 @@ describe(`Function 'arrayReverse':`, () => { }); it(`should return an array`, () => { - + expect(Array.isArray(arrayReverse(['abc']))).toBe(true); }); - it(`should return an empty string - if original array consists of an empty string`, () => { + it(`should reverse all characters`, () => { expect(arrayReverse(['Mate', 'Academy'])).toEqual(['ymed', 'acAetaM']); }); + it('should reverse a single word', () => { + expect(arrayReverse(['JavaScript'])).toEqual(['tpircSavaJ']); + }); + + it('should return an empty array if input is empty', () => { + expect(arrayReverse([])).toEqual([]); + }); + // write more tests here });