Merge pull request #734 from cmgustavo/feature/wallet-creation
Feature/wallet creation
This commit is contained in:
commit
e0ed8044a7
6 changed files with 177 additions and 122 deletions
|
|
@ -55,6 +55,25 @@ describe("Unit: Controllers", function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('Setup Controller', function() {
|
||||
var setupCtrl;
|
||||
beforeEach(inject(function($controller, $rootScope) {
|
||||
scope = $rootScope.$new();
|
||||
setupCtrl = $controller('SetupController', {
|
||||
$scope: scope,
|
||||
});
|
||||
}));
|
||||
|
||||
describe('#getNumber', function() {
|
||||
it('should return an array of n undefined elements', function() {
|
||||
var n = 5;
|
||||
var array = scope.getNumber(n);
|
||||
expect(array.length).equal(n);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('Address Controller', function() {
|
||||
var addressCtrl;
|
||||
beforeEach(inject(function($controller, $rootScope) {
|
||||
|
|
@ -212,6 +231,13 @@ describe("Unit: Controllers", function() {
|
|||
scope.$apply();
|
||||
});
|
||||
|
||||
it('should return an array of n undefined elements', function() {
|
||||
$httpBackend.flush(); // need flush
|
||||
var n = 5;
|
||||
var array = scope.getNumber(n);
|
||||
expect(array.length).equal(n);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('Send Controller', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue