Skip to content

Commit

Permalink
eslint/prefer-const: resolve violations (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn authored Aug 21, 2023
1 parent 9f58fae commit 83e4533
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions test/integration/worker/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ describe('worker', () => {
});

it('should pass the container and event details to the job', testContainerFullTrx(async (container) => {
// eslint-disable-next-line prefer-const
let sentineledContainer = container.with({ testSentinel: 108 });
const sentineledContainer = container.with({ testSentinel: 108 });
let checked = false;
const jobMap = { 'test.event': [ (c, e) => {
c.testSentinel.should.equal(108);
Expand Down
3 changes: 1 addition & 2 deletions test/unit/http/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,7 @@ describe('endpoints', () => {

describe('before handler', () => {
it('should run after preprocessors and before the resource', () => {
// eslint-disable-next-line prefer-const
let ran = [];
const ran = [];
const push = (str) => () => { ran.push(str); };
return endpointBase({
before: push('before'),
Expand Down
3 changes: 1 addition & 2 deletions test/util/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ const zipStreamToFiles = (zipStream, callback) => {
if(err) return callback(err);

const result = { filenames: [] };
// eslint-disable-next-line prefer-const
let entries = [];
const entries = [];
let completed = 0;

zipfile.on('entry', (entry) => entries.push(entry));
Expand Down

0 comments on commit 83e4533

Please sign in to comment.