diff --git a/test/unit/controllers/controllersSpec.js b/test/unit/controllers/controllersSpec.js index a4099a31b..d471c1e7f 100644 --- a/test/unit/controllers/controllersSpec.js +++ b/test/unit/controllers/controllersSpec.js @@ -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); + }); }); });