Completed
Push — master ( 73a192...44c437 )
by Rafael
02:33 queued 01:20
created

test/color/render_test.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 18
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 18
rs 10
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A render_test.js ➔ describe(ꞌpalette controlꞌ) 0 14 1
1
import { Material } from '../../src/controls/color/js/material.js';
2
3
import { StyleUpdater, ColorPalette } from '../../src/controls';
4
5
describe( 'palette control', function() {
6
	it( 'returns element', function() {
7
8
		// Instantiate the css loader.
9
		this.styleUpdater = new StyleUpdater( document );
10
		this.styleUpdater.setup();
11
12
		let $tab = $( '.colors-tab' ),
13
			colorPalette = new ColorPalette(),
14
			$control = colorPalette.render( $tab.find( '.control' ) );
15
16
		expect( $control.length ).toEqual( 1 );
17
	} );
18
} );
19