| Total Complexity | 4 |
| Complexity/F | 1 |
| Lines of Code | 19 |
| Function Count | 4 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 23 | describe('BoardController', function() { |
||
| 24 | 'use strict'; |
||
| 25 | |||
| 26 | var $controller; |
||
| 27 | |||
| 28 | beforeEach(inject(function(_$controller_){ |
||
| 29 | // The injector unwraps the underscores (_) from around the parameter names when matching |
||
| 30 | $controller = _$controller_; |
||
| 31 | })); |
||
| 32 | |||
| 33 | describe('$scope.rgblight', function() { |
||
| 34 | it('converts rbg color to a lighter color', function() { |
||
| 35 | var $scope = {}; |
||
| 36 | var controller = $controller('BoardController', { $scope: $scope }); |
||
|
|
|||
| 37 | var hex = $scope.rgblight('red'); |
||
| 38 | expect(hex).toEqual('#red'); |
||
| 39 | }); |
||
| 40 | }); |
||
| 41 | }); |
||
| 42 |