add test
This commit is contained in:
parent
e09b1e4fdc
commit
83ecbcee2b
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue