id is now independent on iv

This commit is contained in:
Abhinav Adduri 2017-07-07 14:47:56 -07:00
parent a11b4b677c
commit 1ce24f7e08
4 changed files with 24 additions and 17 deletions

View file

@ -113,8 +113,9 @@ describe('Testing Set using aws', function() {
s3Stub.upload.callsArgWith(1, null, {});
return storage
.set('123', {}, 'Filename.moz', {})
.then(deleteKey => {
.then(([deleteKey, id]) => {
assert.equal(deleteKey, buf.toString('hex'));
assert.notEqual(id, null);
assert.notEqual(deleteKey, null);
assert(expire.calledOnce);
assert(expire.calledWith('123', 86400000));