remove console.logs

This commit is contained in:
Manuel Araoz 2014-08-14 15:08:55 -04:00
commit 439d44cf80
3 changed files with 3 additions and 21 deletions

View file

@ -233,7 +233,6 @@ WalletFactory.prototype.joinCreateSession = function(secret, nickname, passphras
});
self.network.on('serverError', function() {
console.log('[WalletFactory.js.236]'); //TODO
return cb('joinError');
});

View file

@ -5,7 +5,7 @@ var should = chai.should();
var Storage = require('../js/models/storage/File.js');
var sinon = require('sinon');
var crypto = require('crypto');
var CryptoJS = require('node-cryptojs-aes').CryptoJS;
ar CryptoJS = require('node-cryptojs-aes').CryptoJS;
var mock = require('mock-fs');
@ -19,7 +19,6 @@ describe('Storage/File', function() {
"test": "test"
};
var encryptedStr = CryptoJS.AES.encrypt(JSON.stringify(obj), 'password').toString();
console.log(encryptedStr);
mock({
'myfilename': encryptedStr
});

View file

@ -1,21 +1,3 @@
//Crypto Mock
CryptoJS = {};
CryptoJS.AES = {};
CryptoJS.AES.encrypt = function(a) {
return a;
};
CryptoJS.enc = {
utf8: ''
};
CryptoJS.AES.decrypt = function(a) {
return a;
};
'use strict';
var chai = chai || require('chai');
var should = chai.should();
@ -27,6 +9,8 @@ if (is_browser) {
var copay = require('../copay'); //node
}
var LocalEncrypted = copay.StorageLocalEncrypted;
var CryptoJS = require('node-cryptojs-aes').CryptoJS;
var fakeWallet = 'fake-wallet-id';
var timeStamp = Date.now();