Merge pull request #1307 from matiu/feature/drive
Feature/ Async storage + Google Drive example
This commit is contained in:
commit
3a79f039cd
38 changed files with 1980 additions and 1192 deletions
|
|
@ -15,16 +15,19 @@ saveAs = function(blob, filename) {
|
|||
var startServer = require('../../mocks/FakePayProServer');
|
||||
|
||||
describe("Unit: Controllers", function() {
|
||||
config.plugins.LocalStorage=true;
|
||||
config.plugins.GoogleDrive=null;
|
||||
|
||||
var invalidForm = {
|
||||
$invalid: true
|
||||
};
|
||||
|
||||
var scope;
|
||||
|
||||
var server;
|
||||
|
||||
beforeEach(module('copayApp.services'));
|
||||
beforeEach(module('copayApp.controllers'));
|
||||
beforeEach(angular.mock.module('copayApp'));
|
||||
|
||||
var walletConfig = {
|
||||
requiredCopayers: 3,
|
||||
|
|
@ -36,6 +39,7 @@ describe("Unit: Controllers", function() {
|
|||
alternativeIsoCode: 'LOL'
|
||||
};
|
||||
|
||||
|
||||
describe('More Controller', function() {
|
||||
var ctrl;
|
||||
beforeEach(inject(function($controller, $rootScope) {
|
||||
|
|
@ -72,11 +76,6 @@ describe("Unit: Controllers", function() {
|
|||
expect(saveAsLastCall.filename).equal('myTESTwullet-testID-keybackup.json.aes');
|
||||
});
|
||||
|
||||
it('Backup controller #delete', function() {
|
||||
expect(scope.wallet).not.equal(undefined);
|
||||
scope.deleteWallet();
|
||||
expect(scope.wallet).equal(undefined);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Create Controller', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue