Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 18 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import { Button } from '../../src/controls/color/js/button.js'; |
||
2 | |||
3 | describe( 'button styles', function() { |
||
4 | it( 'creates sass', function() { |
||
5 | let button = new Button(), |
||
6 | expected = '$ubtn-colors: (\'primary\' yellow #1a1a1a)(\'secondary\' red #1a1a1a);', |
||
7 | colors = [ |
||
8 | { 'name': 'primary', val: 'yellow' }, |
||
9 | { 'name': 'secondary', val: 'red' } |
||
10 | ]; |
||
11 | |||
12 | expect( expected ).toEqual( button.formatColorSass( colors ) ); |
||
13 | } ); |
||
14 | it( 'creates sass without args', function() { |
||
15 | let button = new Button(); |
||
16 | expect( '' ).toEqual( button.formatColorSass() ); |
||
17 | } ); |
||
18 | } ); |
||
19 |