This commit is contained in:
Manuel Araoz 2014-06-23 15:12:18 -03:00
parent e09b1e4fdc
commit 83ecbcee2b
1 changed files with 5 additions and 0 deletions

View File

@ -220,6 +220,7 @@ describe("Unit: Controllers", function() {
var sendCtrl;
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
$rootScope.availableBalance = 123456;
sendCtrl = $controller('SendController', {
$scope: scope,
$modal: {},
@ -229,6 +230,10 @@ describe("Unit: Controllers", function() {
it('should have a SendController', function() {
expect(scope.isMobile).not.to.equal(null);
});
it('should autotop balance correctly', function() {
scope.topAmount();
expect(scope.amount).to.equal(123356);
});
});
});