Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserfaraazkhan committed Jun 7, 2024
1 parent 3f55c77 commit 8108448
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions detox/utils/artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
const fs = require('fs');
const path = require('path');

const { S3 } = require('@aws-sdk/client-s3');
const { Upload } = require('@aws-sdk/lib-storage');
const {S3} = require('@aws-sdk/client-s3');
const {Upload} = require('@aws-sdk/lib-storage');
const async = require('async');
const mime = require('mime-types');
const readdir = require('recursive-readdir');

const { ARTIFACTS_DIR } = require('./constants');
const {ARTIFACTS_DIR} = require('./constants');

require('dotenv').config();

Expand Down Expand Up @@ -65,7 +65,7 @@ async function saveArtifacts() {
ContentType: `${contentType}${charset ? '; charset=' + charset : ''}`,
},
}).done();
return { success: true };
return {success: true};
} catch (e) {
console.log('Failed to upload artifact:', file);
throw new Error(e);
Expand All @@ -78,10 +78,10 @@ async function saveArtifacts() {
}

const reportLink = `https://${DETOX_AWS_S3_BUCKET}.s3.amazonaws.com/${REPORT_PATH}/jest-stare/${platform}-report.html`;
resolve({ success: true, reportLink });
resolve({success: true, reportLink});
},
);
});
}

module.exports = { saveArtifacts };
module.exports = {saveArtifacts};

0 comments on commit 8108448

Please sign in to comment.