[misc] run format:fix

This commit is contained in:
Jakob Ackermann 2021-07-27 16:53:06 +01:00
parent d2589823b0
commit a383dc316c
2 changed files with 5 additions and 9 deletions

View file

@ -163,9 +163,9 @@ module.exports = class FSPersistor extends AbstractPersistor {
try { try {
await Promise.all( await Promise.all(
(await fsGlob(`${location}/${filteredName}_*`)).map((file) => (
fsUnlink(file) await fsGlob(`${location}/${filteredName}_*`)
) ).map((file) => fsUnlink(file))
) )
} catch (err) { } catch (err) {
throw PersistorHelper.wrapError( throw PersistorHelper.wrapError(

View file

@ -195,9 +195,7 @@ describe('MigrationPersistorTests', function () {
}) })
it('should send a stream to the primary', function () { it('should send a stream to the primary', function () {
expect( expect(primaryPersistor.sendStream).to.have.been.calledWithExactly(
primaryPersistor.sendStream
).to.have.been.calledWithExactly(
bucket, bucket,
key, key,
sinon.match.instanceOf(Stream.PassThrough), sinon.match.instanceOf(Stream.PassThrough),
@ -476,9 +474,7 @@ describe('MigrationPersistorTests', function () {
}) })
it('should send the file to the primary', function () { it('should send the file to the primary', function () {
expect( expect(primaryPersistor.sendStream).to.have.been.calledWithExactly(
primaryPersistor.sendStream
).to.have.been.calledWithExactly(
bucket, bucket,
destKey, destKey,
sinon.match.instanceOf(Stream.PassThrough), sinon.match.instanceOf(Stream.PassThrough),