Passed
Push — master ( b113b5...f2f27e )
by Rafael
01:28
created

test/color/generate_test.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 8
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 2
c 1
b 0
f 0
nc 1
mnd 0
bc 2
fnc 2
dl 0
loc 8
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A generate_test.js ➔ describe(ꞌpalette calculationsꞌ) 0 6 1
1
import { Generate } from '../../src/controls/color/js/generate.js';
2
3
describe( 'palette calculations', function() {
4
	it( 'gets contrast color', function() {
5
		let generate = new Generate();
6
		expect( generate.getContrast( '#000' ) ).toEqual( generate.contrast.dark );
7
	} );
8
} );
9