renaming files

This commit is contained in:
Manuel Araoz 2014-04-16 11:55:18 -03:00
commit 609ba4ef71
11 changed files with 14 additions and 14 deletions

View file

@ -4,7 +4,7 @@ var chai = chai || require('chai');
var should = chai.should();
var copay = copay || require('../copay');
var Wallet = require('soop').load('../js/models/core/Wallet', {
Storage: require('./FakeStorage'),
Storage: require('./mocks/FakeStorage'),
Network: copay.WebRTC,
Blockchain: copay.Insight
});

View file

@ -5,19 +5,19 @@ if (typeof process === 'undefined' || !process.version) {
var chai = chai || require('chai');
var should = chai.should();
var copay = copay || require('../copay');
var Encrypted = copay.StorageEncrypted;
var LocalEncrypted = copay.StorageLocalEncrypted;
describe('Storage/Encrypted model', function() {
describe('Storage/LocalEncrypted model', function() {
var wid = 'fake-wallet-id';
var s = new Encrypted();
var s = new LocalEncrypted();
s._setPassphrase('mysupercoolpassword');
it('should create an instance', function() {
var s = new Encrypted();
var s = new LocalEncrypted();
should.exist(s);
});
it('should fail when encrypting without a password', function() {
var s = new Encrypted();
var s = new LocalEncrypted();
(function(){s.set(wid, 'x', 1);}).should.throw();
});
it('should be able to encrypt and decrypt', function() {

View file

@ -5,12 +5,12 @@ if (typeof process === 'undefined' || !process.version) {
var chai = chai || require('chai');
var should = chai.should();
var copay = copay || require('../copay');
var Plain = copay.StoragePlain;
var LocalPlain = copay.StorageLocalPlain;
describe('Storage/Plain model', function() {
describe('Storage/LocalPlain model', function() {
it('should create an instance', function () {
var s = new Plain();
var s = new LocalPlain();
should.exist(s);
});
});