First commit

This commit is contained in:
2015-09-10 14:02:43 +00:00
commit ab624930df
25 changed files with 933 additions and 0 deletions

23
test/home.controller.js Normal file
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');
}));
});
});