Skip to content

Commit bf4d312

Browse files
LironErEnase
authored andcommitted
fix lint errors
1 parent ef45e86 commit bf4d312

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/test/index.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,12 @@ describe('plugin tests', function(this: any) {
445445
const getLambdaTestStatements = (): any[] => {
446446
const plugin = new Plugin(serverless);
447447

448-
const compiledResources = serverless.service.provider.compiledCloudFormationTemplate.Resources;
449-
plugin.createRolesPerFunction();
450-
const helloInherit = compiledResources.HelloInheritIamRoleLambdaExecution;
451-
assert.isNotEmpty(helloInherit);
448+
const compiledResources = serverless.service.provider.compiledCloudFormationTemplate.Resources;
449+
plugin.createRolesPerFunction();
450+
const helloInherit = compiledResources.HelloInheritIamRoleLambdaExecution;
451+
assert.isNotEmpty(helloInherit);
452452

453-
return helloInherit.Properties.Policies[0].PolicyDocument.Statement;
453+
return helloInherit.Properties.Policies[0].PolicyDocument.Statement;
454454
}
455455

456456
it('no global iam and iamRoleStatements properties', () => {
@@ -483,7 +483,7 @@ describe('plugin tests', function(this: any) {
483483

484484
it('no role property', () => {
485485
_.set(serverless.service, 'provider.iam', {
486-
deploymentRole: 'arn:aws:iam::123456789012:role/deploy-role'
486+
deploymentRole: 'arn:aws:iam::123456789012:role/deploy-role',
487487
});
488488

489489
const statements = getLambdaTestStatements();
@@ -498,7 +498,7 @@ describe('plugin tests', function(this: any) {
498498

499499
it('role property set to role ARN', () => {
500500
_.set(serverless.service, 'provider.iam', {
501-
role: 'arn:aws:iam::0123456789:role//my/default/path/roleInMyAccount'
501+
role: 'arn:aws:iam::0123456789:role//my/default/path/roleInMyAccount',
502502
});
503503

504504
const statements = getLambdaTestStatements();
@@ -514,8 +514,8 @@ describe('plugin tests', function(this: any) {
514514
it('role is set without statements', () => {
515515
_.set(serverless.service, 'provider.iam', {
516516
role: {
517-
managedPolicies: ['arn:aws:iam::123456789012:user/*']
518-
}
517+
managedPolicies: ['arn:aws:iam::123456789012:user/*'],
518+
},
519519
});
520520

521521
const statements = getLambdaTestStatements();
@@ -531,8 +531,8 @@ describe('plugin tests', function(this: any) {
531531
it('empty statements', () => {
532532
_.set(serverless.service, 'provider.iam', {
533533
role: {
534-
statements: []
535-
}
534+
statements: [],
535+
},
536536
});
537537

538538
const statements = getLambdaTestStatements();
@@ -545,18 +545,18 @@ describe('plugin tests', function(this: any) {
545545
);
546546
});
547547
});
548-
548+
549549
it('global iam role statements exists in lambda role statements', () => {
550550
_.set(serverless.service, 'provider.iam', {
551551
role: {
552552
statements: [{
553553
Effect: 'Allow',
554554
Action: [
555-
'ec2:CreateNetworkInterface'
555+
'ec2:CreateNetworkInterface',
556556
],
557-
Resource: '*'
558-
}]
559-
}
557+
Resource: '*',
558+
}],
559+
},
560560
});
561561

562562
const statements = getLambdaTestStatements();

0 commit comments

Comments
 (0)