fix karma tests

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-11 17:14:00 -03:00
parent 6926bb9b04
commit aac8f7ff8e
1 changed files with 0 additions and 32 deletions

View File

@ -81,38 +81,6 @@ describe("Unit: Controllers", function() {
$rootScope.wallet = w;
}));
describe('More Controller', function() {
var ctrl;
beforeEach(inject(function($controller, $rootScope) {
ctrl = $controller('MoreController', {
$scope: scope,
$modal: {},
});
saveAsLastCall = null;
}));
it('Backup controller #download', function() {
expect(saveAsLastCall).equal(null);
scope.downloadBackup();
expect(saveAsLastCall.blob.size).equal(7);
expect(saveAsLastCall.blob.type).equal('text/plain;charset=utf-8');
});
it('Backup controller should name backup correctly for multiple copayers', function() {
expect(saveAsLastCall).equal(null);
scope.downloadBackup();
expect(saveAsLastCall.filename).equal('nickname-fakeWallet-keybackup.json.aes');
});
it('Backup controller should name backup correctly for 1-1 wallet', function() {
expect(saveAsLastCall).equal(null);
scope.wallet.totalCopayers = 1;
scope.downloadBackup();
expect(saveAsLastCall.filename).equal('fakeWallet-keybackup.json.aes');
});
});
describe('Create Controller', function() {
var c;
beforeEach(inject(function($controller, $rootScope) {