This commit is contained in:
Julius Haertl
2016-07-28 23:37:38 +02:00
parent 43023aa9d3
commit d61dcdb614
19 changed files with 220 additions and 57 deletions

View File

@@ -0,0 +1,19 @@
describe('BoardController', function() {
'use strict';
var $controller;
beforeEach(inject(function(_$controller_){
// The injector unwraps the underscores (_) from around the parameter names when matching
$controller = _$controller_;
}));
describe('$scope.rgblight', function() {
it('converts rbg color to a lighter color', function() {
var $scope = {};
var controller = $controller('BoardController', { $scope: $scope });
var hex = $scope.rgblight('red');
expect(hex).toEqual('#red');
});
});
});