Passed
Pull Request — master (#35)
by Pieter Epeüs
01:40
created

test/unique.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 11
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
mnd 0
bc 0
fnc 2
dl 0
loc 11
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 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