From c2ea0b79c2ec6f6f3f6505365f9a90a4f1966355 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Tue, 10 Jun 2014 10:46:10 -0700 Subject: [PATCH 1/2] fix getEncryptedObj test getEncryptedObj doesn't even exist any more. I remove the test for that function, and add a test for the new function, export, which replaces it. --- test/test.storage.LocalEncrypted.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.storage.LocalEncrypted.js b/test/test.storage.LocalEncrypted.js index 8e674a52f..60b16966b 100644 --- a/test/test.storage.LocalEncrypted.js +++ b/test/test.storage.LocalEncrypted.js @@ -46,13 +46,13 @@ if (typeof process === 'undefined' || !process.version) { }); }); - describe('#getEncryptedObj', function() { - it('should encrypt the wallet', function() { + describe('#export', function() { + it('should export the encrypted wallet', function() { localStorage.clear(); var storage = new LocalEncrypted({password: 'password'}); storage.set('walletId', 'test', 'testval'); var obj = {test:'testval'}; - var encrypted = storage.getEncryptedObj('walletId'); + var encrypted = storage.export(obj); encrypted.length.should.be.greaterThan(10); //encrypted.slice(0,6).should.equal("53616c"); }); From 57464a2a4812a50e2decda5fdc1b4d6cd6a2e4d9 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 11 Jun 2014 10:05:48 -0300 Subject: [PATCH 2/2] update references to bitcore --- test/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/index.html b/test/index.html index aea485bfa..0e3170129 100644 --- a/test/index.html +++ b/test/index.html @@ -12,12 +12,11 @@ - + -