fix(techdocs-common): format

This commit is contained in:
Remi
2020-12-21 01:04:00 +01:00
parent b9e6d305e2
commit 0661c4f725
2 changed files with 14 additions and 10 deletions
@@ -47,7 +47,7 @@ export class S3 {
getObject({ Key }: { Key: string }) {
return {
promise: () => this.checkFileExists(Key)
promise: () => this.checkFileExists(Key),
};
}
@@ -56,15 +56,15 @@ export class S3 {
if (fs.existsSync(Key)) {
resolve('');
} else {
reject({ message: 'The object doest not exist !'});
reject({ message: 'The object doest not exist !' });
}
})
});
}
headBucket() {
return new Promise((resolve) => {
resolve('')
})
return new Promise(resolve => {
resolve('');
});
}
upload({ Key }: { Key: string }) {
@@ -90,10 +90,14 @@ describe('AwsS3Publish', () => {
});
const entity = createMockEntity();
await publisher.publish({
entity,
directory: '/path/to/generatedDirectory',
}).catch(error => expect(error).toBe(`Unable to upload file(s) to AWS S3. Error`))
await publisher
.publish({
entity,
directory: '/path/to/generatedDirectory',
})
.catch(error =>
expect(error).toBe(`Unable to upload file(s) to AWS S3. Error`),
);
mockFs.restore();
});
});