From 83ecbcee2b095f19674109e82ff5d8446c85db19 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Mon, 23 Jun 2014 15:12:18 -0300 Subject: [PATCH] add test --- test/unit/controllers/controllersSpec.js | 5 +++++ 1 file changed, 5 insertions(+) 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); + }); }); });