| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import { Button } from '../../src/controls/color/js/button.js'; |
||
| 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() { |
||
| 19 |