Skip to content

Commit e79893e

Browse files
committed
linted
1 parent dfa1fc7 commit e79893e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

lambda/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ module.exports.generatePayloads = (num, payloadInput) => {
250250

251251
// iterate over weighted payloads and fill the array based on relative weight
252252
let done = 0;
253-
for (let i=0; i < payloadInput.length; i++) {
253+
for (let i = 0; i < payloadInput.length; i++) {
254254
const p = payloadInput[i];
255255
var howMany = Math.floor(p.weight * num / total);
256256
if (howMany < 1) {

test/unit/test-utils.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ describe('Lambda Utils', () => {
331331
});
332332

333333
it('should invoke the processing function without an alias', async() => {
334-
const ARN = "arn:aws:lambda:eu-west-1:XXX:function:name";
335-
const data = await utils.invokeLambdaProcessor(ARN, "{}");
334+
const ARN = 'arn:aws:lambda:eu-west-1:XXX:function:name';
335+
const data = await utils.invokeLambdaProcessor(ARN, '{}');
336336
expect(data).to.be(undefined); // mocked API call
337337
});
338338

@@ -620,13 +620,10 @@ describe('Lambda Utils', () => {
620620
counters[JSON.parse(payload).test] += 1;
621621
});
622622

623-
for(let i=1; i<26; i++) {
624-
if(counters[i] !== 1) {
625-
expect().fail(`i=${i}, counter=${counters[i]}`)
626-
}
627-
// expect(counters[i]).to.be(1);
623+
for (let i = 1; i < 26; i++) {
624+
expect(counters[i]).to.be(1);
628625
}
629-
expect(counters[26]).to.be(1+4);
626+
expect(counters[26]).to.be(1 + 4);
630627
});
631628

632629
});

0 commit comments

Comments
 (0)