mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-09 19:55:34 +00:00
linting issues
This commit is contained in:
@@ -112,11 +112,8 @@ describe('Testing Set using aws', function() {
|
||||
sinon.stub(crypto, 'randomBytes').returns(buf);
|
||||
s3Stub.upload.callsArgWith(1, null, {});
|
||||
return storage
|
||||
.set('123', {}, 'Filename.moz', {})
|
||||
.then(([deleteKey, id]) => {
|
||||
assert.equal(deleteKey, buf.toString('hex'));
|
||||
assert.notEqual(id, null);
|
||||
assert.notEqual(deleteKey, null);
|
||||
.set('123', '123', {}, 'Filename.moz', {})
|
||||
.then(() => {
|
||||
assert(expire.calledOnce);
|
||||
assert(expire.calledWith('123', 86400000));
|
||||
})
|
||||
|
||||
@@ -122,9 +122,9 @@ describe('Testing Set to local filesystem', function() {
|
||||
fsStub.createWriteStream.returns({ on: stub });
|
||||
|
||||
return storage
|
||||
.set('test', { pipe: sinon.stub() }, 'Filename.moz', {})
|
||||
.then(deleteKey => {
|
||||
assert(deleteKey);
|
||||
.set('test', 'test', { pipe: sinon.stub() }, 'Filename.moz', {})
|
||||
.then(() => {
|
||||
assert(1);
|
||||
})
|
||||
.catch(err => assert.fail());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user