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

render_test.js ➔ describe(ꞌpalette controlꞌ)   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

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 14
rs 9.4285
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A render_test.js ➔ ... ➔ it(ꞌreturns elementꞌ) 0 12 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