Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 18 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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 |