Completed
Push — master ( 734acd...e65e46 )
by Pieter Epeüs
13s queued 10s
created

test/summ.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 13
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 7
mnd 0
bc 0
fnc 3
dl 0
loc 13
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import { Arr } from '../src/helpers';
2
3
const exampleArray = new Arr([1, 2, 3]);
4
5
describe('Summ', () => {
6
    it('Should return the summ of the items, in this example should it be 6.', () => {
7
        expect(6).toEqual(exampleArray.summ);
8
    });
9
10
    it('Test an empty array', () => {
11
        expect(null).toEqual(new Arr([]).summ);
12
    });
13
});
14