From c2ea0b79c2ec6f6f3f6505365f9a90a4f1966355 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Tue, 10 Jun 2014 10:46:10 -0700 Subject: [PATCH] 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"); });