change names in services

This commit is contained in:
Matias Alejo Garcia 2014-06-03 17:42:36 -03:00
commit 77f6a8221a
20 changed files with 53 additions and 59 deletions

View file

@ -3,13 +3,31 @@
//
describe("Unit: Testing Controllers", function() {
// beforeEach(module('copay'));
beforeEach(module('copay.signin'));
beforeEach(module('notifications'));
beforeEach(module('copayApp.services'));
beforeEach(module('copayApp.controllers'));
var scope, addressCtrl;
//
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
addressCtrl = $controller('AddressesController', {
$scope: scope,
});
}));
it('should have a AddressesController controller', function() {
console.log('[controllersSpec.js.10:copayApp:]',copayApp.controller); //TODO
expect(copayApp.AddressesController).not.to.equal(null);
expect(scope.loading).equal(false);
});
it('selectedAddr should modify scope', function() {
expect(scope.selectedAddress).equal(undefined);
scope.selectAddress('hola');
expect(scope.selectedAddr).equal('hola');
});
//
// it('should have a BackupController controller', function() {
// expect(copayApp.Backupcontroller).not.to.equal(null);