| Total Complexity | 3 |
| Complexity/F | 1 |
| Lines of Code | 11 |
| Function Count | 3 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { Arr } from '../js/helpers.core'; |
||
| 2 | |||
| 3 | describe('Last', () => { |
||
| 4 | it('Should return the first, in this example should it be 3.', () => { |
||
| 5 | expect(new Arr([1, 2, 3]).last).toEqual(3); |
||
| 6 | }); |
||
| 7 | |||
| 8 | it('Test an empty array', () => { |
||
| 9 | expect(new Arr([]).last).toEqual(null); |
||
| 10 | }); |
||
| 11 | }); |
||
| 12 |