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.
This commit is contained in:
Ryan X. Charles 2014-06-10 10:46:10 -07:00
parent 1d8559237e
commit c2ea0b79c2
1 changed files with 3 additions and 3 deletions

View File

@ -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");
});