npm run format
This commit is contained in:
parent
eda901ba4a
commit
d09b97db41
4 changed files with 18 additions and 11 deletions
|
@ -44,16 +44,18 @@ const storage = proxyquire('../server/storage', {
|
|||
describe('Testing Exists from local filesystem', function() {
|
||||
it('Exists returns true when file exists', function() {
|
||||
exists.callsArgWith(1, null, 1);
|
||||
return storage.exists('test')
|
||||
.then(() => assert(1))
|
||||
.catch(err => assert.fail())
|
||||
return storage
|
||||
.exists('test')
|
||||
.then(() => assert(1))
|
||||
.catch(err => assert.fail());
|
||||
});
|
||||
|
||||
it('Exists returns false when file does not exist', function() {
|
||||
exists.callsArgWith(1, null, 0);
|
||||
return storage.exists('test')
|
||||
.then(() => assert.fail())
|
||||
.catch(err => assert(1))
|
||||
return storage
|
||||
.exists('test')
|
||||
.then(() => assert.fail())
|
||||
.catch(err => assert(1));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue