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

(ꞌpalette calculationsꞌ)   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 6
rs 9.4285
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A generate_test.js ➔ ... ➔ it(ꞌgets contrast colorꞌ) 0 4 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