Fix: coverage configuration

This commit is contained in:
2015-09-11 08:50:10 +00:00
parent d5103f7719
commit e68f747179
6 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,23 @@
describe('HomeController', function() {
var rootScope;
beforeEach(module('cloudbudget'));
beforeEach(inject(function($rootScope) {
rootScope = $rootScope.$new();
}));
describe('getFullname()', function() {
it('should handle names correctly', inject(function($controller) {
var scope = {};
var homeController = $controller('HomeController', {
'$rootScope': rootScope
});
homeController.firstname = 'George';
homeController.lastname = 'Harrison';
homeController.getFullname().should.be.equal('George Harrison');
}));
});
});