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