renaming files
This commit is contained in:
parent
8f15578bb4
commit
609ba4ef71
11 changed files with 14 additions and 14 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
@ -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() {
|
||||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue