Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 11 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Arr } from '../src/helpers'; |
||
2 | |||
3 | const a = new Arr(['John', 'Peter', 'Luke', 'Peter', 'Luke', 'Paul']); |
||
4 | |||
5 | const expectedResults = ['John', 'Peter', 'Luke', 'Paul']; |
||
6 | |||
7 | describe('Unique', () => { |
||
8 | it('Should return the unique items from the array, in this example 4 items.', () => { |
||
9 | expect(expectedResults).toEqual(a.unique); |
||
10 | }); |
||
11 | }); |
||
12 |